aboutsummaryrefslogtreecommitdiff
path: root/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
commit0b849d34b3a9574615e98e108db4e8099e9032e0 (patch)
treee533db37ea34e3b7394d3ed1e65ab59fe96316a7 /test/Preprocessor
parentf512acee01617c9da8079ed88ded3bb9f2418349 (diff)
[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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175907 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Preprocessor')
-rw-r--r--test/Preprocessor/pp-record.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Preprocessor/pp-record.c b/test/Preprocessor/pp-record.c
index 92ca366e37..48000edd73 100644
--- a/test/Preprocessor/pp-record.c
+++ b/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;