summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/Inputs/macros_top.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_top.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_top.h')
-rw-r--r--clang/test/Modules/Inputs/macros_top.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/Modules/Inputs/macros_top.h b/clang/test/Modules/Inputs/macros_top.h
index 1a21848f6c5..5264cea2d17 100644
--- a/clang/test/Modules/Inputs/macros_top.h
+++ b/clang/test/Modules/Inputs/macros_top.h
@@ -2,4 +2,12 @@
#define TOP_LEFT_UNDEF 1
+
+
+
+
+
+
+
+
#define TOP_RIGHT_REDEF int
OpenPOWER on IntegriCloud