aboutsummaryrefslogtreecommitdiff
path: root/test/Modules/macros.c
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-09-14 20:36:30 +0000
committerDouglas Gregor <dgregor@apple.com>2011-09-14 20:36:30 +0000
commit0c129afcfb7860b9e1ff29c34edeab17b770140b (patch)
tree2b3d8a0398c51003fd38791281e2bca807c97cfb /test/Modules/macros.c
parente2978e337520bab472fdfa7dfda839bafbf750e9 (diff)
Don't try to write a macro offset for an identifier that names a non-exported macro
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@139728 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Modules/macros.c')
-rw-r--r--test/Modules/macros.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Modules/macros.c b/test/Modules/macros.c
index 578e09fbda..8fefe7a9cf 100644
--- a/test/Modules/macros.c
+++ b/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