aboutsummaryrefslogtreecommitdiff
path: root/test/Modules/macros.c
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-11-16 05:16:30 +0000
committerDouglas Gregor <dgregor@apple.com>2011-11-16 05:16:30 +0000
commit42583320cf7977fd474572b9fe78e13eaf45fb8f (patch)
tree54af0a2d014e686e9d6f0d7db2c8e1e0f2d5bf71 /test/Modules/macros.c
parentde19bb1f030813a0096de28be68d70533dd1ba9e (diff)
Migrate a few more modules tests over to -emit-module-from-map.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144779 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Modules/macros.c')
-rw-r--r--test/Modules/macros.c21
1 files changed, 4 insertions, 17 deletions
diff --git a/test/Modules/macros.c b/test/Modules/macros.c
index e371237bb0..3eb0dbb3be 100644
--- a/test/Modules/macros.c
+++ b/test/Modules/macros.c
@@ -1,19 +1,7 @@
-// RUN: %clang_cc1 -emit-module -o %t/macros.pcm -DMODULE %s
-// RUN: %clang_cc1 -verify -fmodule-cache-path %t -fdisable-module-hash %s
-// RUN: %clang_cc1 -E -fmodule-cache-path %t -fdisable-module-hash %s | FileCheck -check-prefix CHECK-PREPROCESSED %s
-
-#if defined(MODULE)
-#define INTEGER(X) int
-#define FLOAT float
-#define DOUBLE double
-
-#__export_macro__ INTEGER
-#__private_macro__ FLOAT
-#__private_macro__ MODULE
-
-int (INTEGER);
-
-#else
+// RUN: rm -rf %t
+// RUN: %clang_cc1 -emit-module-from-map -fmodule-cache-path %t -fmodule-name=macros %S/Inputs/module.map
+// RUN: %clang_cc1 -verify -fmodule-cache-path %t %s
+// RUN: %clang_cc1 -E -fmodule-cache-path %t %s | FileCheck -check-prefix CHECK-PREPROCESSED %s
__import_module__ macros;
@@ -39,4 +27,3 @@ void f() {
// CHECK-PREPROCESSED: int i = INTEGER;
int i = INTEGER; // the value was exported, the macro was not.
}
-#endif