summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/header-module.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2018-09-15 01:21:16 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2018-09-15 01:21:16 +0000
commitcd35eff395b4c21b6f0f3e05a7e09665b6caab79 (patch)
treeeb22be88cfae76994bea558ae16cafb8e2f1271f /clang/test/Driver/header-module.cpp
parentd6509cf21dd017392f82da0eb9b0345fbfc8970b (diff)
downloadbcm5719-llvm-cd35eff395b4c21b6f0f3e05a7e09665b6caab79.tar.gz
bcm5719-llvm-cd35eff395b4c21b6f0f3e05a7e09665b6caab79.zip
[modules] Driver support for precompiling a collection of files as a single
action. llvm-svn: 342305
Diffstat (limited to 'clang/test/Driver/header-module.cpp')
-rw-r--r--clang/test/Driver/header-module.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/clang/test/Driver/header-module.cpp b/clang/test/Driver/header-module.cpp
new file mode 100644
index 00000000000..2302c495f10
--- /dev/null
+++ b/clang/test/Driver/header-module.cpp
@@ -0,0 +1,13 @@
+// Check compiling a header module to a .pcm file.
+//
+// RUN: %clang -fmodules-ts -fmodule-name=foobar -x c++-header --precompile %S/Inputs/header1.h %S/Inputs/header2.h %S/Inputs/header3.h -o %t.pcm -v 2>&1 | FileCheck %s --check-prefix=CHECK-PRECOMPILE
+//
+// CHECK-PRECOMPILE: -cc1 {{.*}} -emit-header-module
+// CHECK-PRECOMPILE-SAME: -fmodules-ts
+// CHECK-PRECOMPILE-SAME: -fno-implicit-modules
+// CHECK-PRECOMPILE-SAME: -fmodule-name=foobar
+// CHECK-PRECOMPILE-SAME: -o {{.*}}.pcm
+// CHECK-PRECOMPILE-SAME: -x c++
+// CHECK-PRECOMPILE-SAME: header1.h
+// CHECK-PRECOMPILE-SAME: header2.h
+// CHECK-PRECOMPILE-SAME: header3.h
OpenPOWER on IntegriCloud