diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-05-22 19:43:45 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-05-22 19:43:45 +0000 |
commit | aa803409c3bd3930126db630c29f63d42f255153 (patch) | |
tree | 042106605c08352895ba4383ef97eae88b6b31aa /test/Modules/preprocess-module.cpp | |
parent | 1ce08792766261dcaa25d8215f9d1c2f70d7b7e9 (diff) |
Diffstat (limited to 'test/Modules/preprocess-module.cpp')
-rw-r--r-- | test/Modules/preprocess-module.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/test/Modules/preprocess-module.cpp b/test/Modules/preprocess-module.cpp index 64af00c471df..eaab3136938f 100644 --- a/test/Modules/preprocess-module.cpp +++ b/test/Modules/preprocess-module.cpp @@ -25,8 +25,8 @@ // RUN: %clang_cc1 -fmodules -fmodule-name=file -fmodule-file=%t/fwd.pcm -fmodule-map-file=%S/Inputs/preprocess/module.modulemap -x c++-module-map-cpp-output %t/rewrite.ii -emit-module -o /dev/null // Check the module we built works. -// RUN: %clang_cc1 -fmodules -fmodule-file=%t/no-rewrite.pcm %s -verify -// RUN: %clang_cc1 -fmodules -fmodule-file=%t/rewrite.pcm %s -verify +// RUN: %clang_cc1 -fmodules -fmodule-file=%t/no-rewrite.pcm %s -I%t -verify -fno-modules-error-recovery +// RUN: %clang_cc1 -fmodules -fmodule-file=%t/rewrite.pcm %s -I%t -verify -fno-modules-error-recovery -DREWRITE // == module map @@ -95,10 +95,12 @@ // NO-REWRITE: #pragma clang module end -// expected-no-diagnostics - -// FIXME: This should be rejected: we have not imported the submodule defining it yet. -__FILE *a; +__FILE *a; // expected-error {{declaration of '__FILE' must be imported}} +#ifdef REWRITE +// expected-note@rewrite.ii:1 {{here}} +#else +// expected-note@no-rewrite.ii:1 {{here}} +#endif #pragma clang module import file |