summaryrefslogtreecommitdiffstats
path: root/clang/test/Preprocessor
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2013-02-22 18:35:59 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2013-02-22 18:35:59 +0000
commit832de9fcf1793a73a9f4909346d9938b1f56304b (patch)
treeb1f846544ae552981000e708771822debefb94ab /clang/test/Preprocessor
parent2999b77f1d1aec8b715b75d6724df6e905b73969 (diff)
downloadbcm5719-llvm-832de9fcf1793a73a9f4909346d9938b1f56304b.tar.gz
bcm5719-llvm-832de9fcf1793a73a9f4909346d9938b1f56304b.zip
[preprocessing record] Have the MacroDefinitions map point to the MacroDefinition object instead
its index in the preprocessed entities vector. This is because the order of the entities in the vector can change in some (uncommon) cases. llvm-svn: 175907
Diffstat (limited to 'clang/test/Preprocessor')
-rw-r--r--clang/test/Preprocessor/pp-record.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/Preprocessor/pp-record.c b/clang/test/Preprocessor/pp-record.c
index 92ca366e37f..48000edd734 100644
--- a/clang/test/Preprocessor/pp-record.c
+++ b/clang/test/Preprocessor/pp-record.c
@@ -26,3 +26,9 @@ FNM(
#define M2 int
#define FM2(x,y) y x
FM2(M1, M2);
+
+#define FM3(x) x
+FM3(
+#define M3 int x2
+)
+M3;
OpenPOWER on IntegriCloud