summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/diamond.c
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-11-16 00:09:06 +0000
committerDouglas Gregor <dgregor@apple.com>2011-11-16 00:09:06 +0000
commit2b20cb87f5b6b48ca8d32f99a0ef5472605afefd (patch)
tree2d4f1581a1685a26bdf04bb954c6b1c823c04c25 /clang/test/Modules/diamond.c
parent653183fd5cf7ec703f62b4a87b706f35c6b31dd6 (diff)
downloadbcm5719-llvm-2b20cb87f5b6b48ca8d32f99a0ef5472605afefd.tar.gz
bcm5719-llvm-2b20cb87f5b6b48ca8d32f99a0ef5472605afefd.zip
Add support for building a module from a module map to the -cc1
interface. This is currently limited to modules with umbrella headers. llvm-svn: 144736
Diffstat (limited to 'clang/test/Modules/diamond.c')
-rw-r--r--clang/test/Modules/diamond.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/clang/test/Modules/diamond.c b/clang/test/Modules/diamond.c
index 482836c4497..195e1da4563 100644
--- a/clang/test/Modules/diamond.c
+++ b/clang/test/Modules/diamond.c
@@ -20,8 +20,9 @@ void test_diamond(int i, float f, double d, char c) {
lr.left = 17;
}
-// RUN: %clang_cc1 -emit-module -o %T/diamond_top.pcm %S/Inputs/diamond_top.h
-// RUN: %clang_cc1 -fmodule-cache-path %T -fdisable-module-hash -emit-module -o %T/diamond_left.pcm %S/Inputs/diamond_left.h
-// RUN: %clang_cc1 -fmodule-cache-path %T -fdisable-module-hash -emit-module -o %T/diamond_right.pcm %S/Inputs/diamond_right.h
-// RUN: %clang_cc1 -fmodule-cache-path %T -fdisable-module-hash -emit-module -o %T/diamond_bottom.pcm %S/Inputs/diamond_bottom.h
-// RUN: %clang_cc1 -fmodule-cache-path %T -fdisable-module-hash %s -verify
+// RUN: rm -rf %t
+// RUN: %clang_cc1 -emit-module-from-map -fmodule-cache-path %t -fmodule-name=diamond_top %S/Inputs/module.map
+// RUN: %clang_cc1 -emit-module-from-map -fmodule-cache-path %t -fmodule-name=diamond_left %S/Inputs/module.map
+// RUN: %clang_cc1 -emit-module-from-map -fmodule-cache-path %t -fmodule-name=diamond_right %S/Inputs/module.map
+// RUN: %clang_cc1 -emit-module-from-map -fmodule-cache-path %t -fmodule-name=diamond_bottom %S/Inputs/module.map
+// RUN: %clang_cc1 -fmodule-cache-path %t %s -verify
OpenPOWER on IntegriCloud