summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/no-module-map.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2018-09-15 01:21:18 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2018-09-15 01:21:18 +0000
commit8b464f299fe0358ed4b82ea269a63155081c73ff (patch)
tree6bd07fdcf89be40c52b3acaea16529a3a28ec5b3 /clang/test/Modules/no-module-map.cpp
parentcd35eff395b4c21b6f0f3e05a7e09665b6caab79 (diff)
downloadbcm5719-llvm-8b464f299fe0358ed4b82ea269a63155081c73ff.tar.gz
bcm5719-llvm-8b464f299fe0358ed4b82ea269a63155081c73ff.zip
[modules] Support use of -E on modules built from the command line.
llvm-svn: 342306
Diffstat (limited to 'clang/test/Modules/no-module-map.cpp')
-rw-r--r--clang/test/Modules/no-module-map.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/Modules/no-module-map.cpp b/clang/test/Modules/no-module-map.cpp
index 08a864bc84b..46ca38af7ee 100644
--- a/clang/test/Modules/no-module-map.cpp
+++ b/clang/test/Modules/no-module-map.cpp
@@ -4,6 +4,11 @@
// RUN: %clang_cc1 -fmodules-ts -fmodule-file=%t.pcm %s -I%S/Inputs/no-module-map -verify -DB
// RUN: %clang_cc1 -fmodules-ts -fmodule-file=%t.pcm %s -I%S/Inputs/no-module-map -verify -DA -DB
+// RUN: %clang_cc1 -E %t.pcm -o - | FileCheck %s
+// RUN: %clang_cc1 -frewrite-imports -E %t.pcm -o - | FileCheck %s
+// CHECK: # {{.*}}a.h
+// CHECK: # {{.*}}b.h
+
#ifdef B
// expected-no-diagnostics
#endif
OpenPOWER on IntegriCloud