summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/redeclarations.m
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-11-16 15:22:03 +0000
committerDouglas Gregor <dgregor@apple.com>2011-11-16 15:22:03 +0000
commit4ba7c2abc29be01c3782a3dac5b8a36c500cb2d3 (patch)
tree983c46188da9671b2de4cc82dd442aceeab065ee /clang/test/Modules/redeclarations.m
parentb345060a85cab46080251cfadac6beb0d732a182 (diff)
downloadbcm5719-llvm-4ba7c2abc29be01c3782a3dac5b8a36c500cb2d3.tar.gz
bcm5719-llvm-4ba7c2abc29be01c3782a3dac5b8a36c500cb2d3.zip
Switch the remaining modules tests over to -emit-module-from-map.
llvm-svn: 144795
Diffstat (limited to 'clang/test/Modules/redeclarations.m')
-rw-r--r--clang/test/Modules/redeclarations.m21
1 files changed, 5 insertions, 16 deletions
diff --git a/clang/test/Modules/redeclarations.m b/clang/test/Modules/redeclarations.m
index 1a37230fcc1..da856ac8d2d 100644
--- a/clang/test/Modules/redeclarations.m
+++ b/clang/test/Modules/redeclarations.m
@@ -1,22 +1,11 @@
-#ifdef MODULE_LEFT
-@class NSObject;
-#endif
-
-#ifdef MODULE_RIGHT
-@interface NSObject
-@end
-#endif
-
-#ifdef APP
-__import_module__ Right;
-__import_module__ Left;
+__import_module__ redeclarations_left;
+__import_module__ redeclarations_right;
@interface MyObject : NSObject
@end
-#endif
// RUN: rm -rf %t
-// RUN: %clang_cc1 -fmodule-cache-path %t -fdisable-module-hash -emit-module -o %t/Left.pcm -DMODULE_LEFT %s
-// RUN: %clang_cc1 -fmodule-cache-path %t -fdisable-module-hash -emit-module -o %t/Right.pcm -DMODULE_RIGHT %s
-// RUN: %clang_cc1 -fmodule-cache-path %t -fdisable-module-hash -DAPP %s -verify
+// RUN: %clang_cc1 -x objective-c -fmodule-cache-path %t -emit-module-from-map -fmodule-name=redeclarations_left %S/Inputs/module.map
+// RUN: %clang_cc1 -x objective-c -fmodule-cache-path %t -emit-module-from-map -fmodule-name=redeclarations_right %S/Inputs/module.map
+// RUN: %clang_cc1 -fmodule-cache-path %t %s -verify
OpenPOWER on IntegriCloud