summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/macros.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Modules/macros.c')
-rw-r--r--clang/test/Modules/macros.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/Modules/macros.c b/clang/test/Modules/macros.c
index 578e09fbda4..8fefe7a9cff 100644
--- a/clang/test/Modules/macros.c
+++ b/clang/test/Modules/macros.c
@@ -9,6 +9,8 @@
#__export_macro__ INTEGER
#__export_macro__ DOUBLE
+int (INTEGER);
+
#else
__import_module__ macros;
@@ -30,4 +32,7 @@ DOUBLE *dp = &d;
#__export_macro__ WIBBLE // expected-error{{no macro named 'WIBBLE' to export}}
+void f() {
+ int i = INTEGER; // the value was exported, the macro was not.
+}
#endif
OpenPOWER on IntegriCloud