Skip to content

Commit 6d759fb

Browse files
committed
Add init-global/warn to tests
1 parent 4dc4684 commit 6d759fb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/test/dotty/tools/dotc/CompilationTests.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ class CompilationTests {
219219
compileFilesInDir("tests/init-global/neg", options).checkExpectedErrors()
220220
compileFilesInDir("tests/init-global/pos", options).checkCompile()
221221
compileFilesInDir("tests/init-global/neg", options, FileFilter.exclude(TestSources.negInitGlobalScala2LibraryTastyBlacklisted)).checkExpectedErrors()
222+
compileFilesInDir("tests/init-global/warn", defaultOptions.and("-Ysafe-init-global"), FileFilter.exclude(TestSources.negInitGlobalScala2LibraryTastyBlacklisted)).checkWarnings()
222223
compileFilesInDir("tests/init-global/pos", options, FileFilter.exclude(TestSources.posInitGlobalScala2LibraryTastyBlacklisted)).checkCompile()
223224
}
224225

0 commit comments

Comments
 (0)