summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/Inputs/macros_right.h
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2012-10-11 21:07:39 +0000
committerDouglas Gregor <dgregor@apple.com>2012-10-11 21:07:39 +0000
commit5968b1b71f880582dd9cc57e8f3669ba100ee9f9 (patch)
tree442be3212befcc1c9b2698a4ab424dff6566bce0 /clang/test/Modules/Inputs/macros_right.h
parentc9822ebc97035714de8eb3076625e5eab7dd01a6 (diff)
downloadbcm5719-llvm-5968b1b71f880582dd9cc57e8f3669ba100ee9f9.tar.gz
bcm5719-llvm-5968b1b71f880582dd9cc57e8f3669ba100ee9f9.zip
Diagnose the expansion of ambiguous macro definitions. This can happen
only with modules, when two disjoint modules #define the same identifier to different token sequences. llvm-svn: 165746
Diffstat (limited to 'clang/test/Modules/Inputs/macros_right.h')
-rw-r--r--clang/test/Modules/Inputs/macros_right.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/test/Modules/Inputs/macros_right.h b/clang/test/Modules/Inputs/macros_right.h
index 8e9688223bc..a4a1e2e0cfa 100644
--- a/clang/test/Modules/Inputs/macros_right.h
+++ b/clang/test/Modules/Inputs/macros_right.h
@@ -1,8 +1,8 @@
#include "macros_top.h"
#define RIGHT unsigned short
-#undef TOP_RIGHT_REDEF
-#define TOP_RIGHT_REDEF float
+
+
@@ -13,3 +13,5 @@
#define LEFT_RIGHT_DIFFERENT2 int
#define LEFT_RIGHT_DIFFERENT3 int
+#undef TOP_RIGHT_REDEF
+#define TOP_RIGHT_REDEF float
OpenPOWER on IntegriCloud