diff options
Diffstat (limited to 'test/Modules/macros.c')
-rw-r--r-- | test/Modules/macros.c | 21 |
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 |