Author: Fangrui Song Date: 2021-02-01T19:46:23-08:00 New Revision: 98768bab19b27db71f497b0e5d87dfa9e5a0f05a
URL: https://github.com/llvm/llvm-project/commit/98768bab19b27db71f497b0e5d87dfa9e5a0f05a DIFF: https://github.com/llvm/llvm-project/commit/98768bab19b27db71f497b0e5d87dfa9e5a0f05a.diff LOG: [test] Fix unuses FileCheck prefixes in clang/test/Modules Added: Modified: clang/test/Modules/codegen.test clang/test/Modules/preprocess-nested.cpp Removed: ################################################################################ diff --git a/clang/test/Modules/codegen.test b/clang/test/Modules/codegen.test index 2d20b078a753..9d0aea502cc9 100644 --- a/clang/test/Modules/codegen.test +++ b/clang/test/Modules/codegen.test @@ -18,8 +18,7 @@ was implemented to workaround/support the initialization of iostreams (implemented as a namespace scope static in the header - only to be provided when that specific header is included in the program). -FOO: module asm "narf" -USE: module asm "narf" +BOTH: module asm "narf" FOO: $_Z2f1PKcz = comdat any FOO: $_ZN13implicit_dtorD1Ev = comdat any diff --git a/clang/test/Modules/preprocess-nested.cpp b/clang/test/Modules/preprocess-nested.cpp index f26b65507ece..507514ce54cd 100644 --- a/clang/test/Modules/preprocess-nested.cpp +++ b/clang/test/Modules/preprocess-nested.cpp @@ -29,7 +29,12 @@ // CHECK: } // CHECK: } +// NO-REWRITE-NOT: #include +// REWRITE: #include "a.h" + // CHECK: #pragma clang module begin nested.a +// NO-REWRITE-NOT: #include +// REWRITE: #include "c.h" // CHECK: #pragma clang module begin nested.c // CHECK: using T = int; // CHECK: #pragma clang module end _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits