From 6d759fb24f1590ba6318b129eed6ac03795b0aea Mon Sep 17 00:00:00 2001 From: Szymon Rodziewicz Date: Tue, 12 Dec 2023 15:09:09 +0100 Subject: [PATCH] Add init-global/warn to tests --- compiler/test/dotty/tools/dotc/CompilationTests.scala | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/test/dotty/tools/dotc/CompilationTests.scala b/compiler/test/dotty/tools/dotc/CompilationTests.scala index abb4dc7c0fed..7af43295814d 100644 --- a/compiler/test/dotty/tools/dotc/CompilationTests.scala +++ b/compiler/test/dotty/tools/dotc/CompilationTests.scala @@ -219,6 +219,7 @@ class CompilationTests { compileFilesInDir("tests/init-global/neg", options).checkExpectedErrors() compileFilesInDir("tests/init-global/pos", options).checkCompile() compileFilesInDir("tests/init-global/neg", options, FileFilter.exclude(TestSources.negInitGlobalScala2LibraryTastyBlacklisted)).checkExpectedErrors() + compileFilesInDir("tests/init-global/warn", defaultOptions.and("-Ysafe-init-global"), FileFilter.exclude(TestSources.negInitGlobalScala2LibraryTastyBlacklisted)).checkWarnings() compileFilesInDir("tests/init-global/pos", options, FileFilter.exclude(TestSources.posInitGlobalScala2LibraryTastyBlacklisted)).checkCompile() }