summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-06-24 17:58:59 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-06-24 17:58:59 +0000
commit2cfce1864542b90c998e2219caca914ad4047239 (patch)
treeabd37b353fe4d7e0dccb10b76b14a90072082dfc /clang/test
parentca88b4abec7507384f77e7be3a49f4127e16cc7a (diff)
downloadbcm5719-llvm-2cfce1864542b90c998e2219caca914ad4047239.tar.gz
bcm5719-llvm-2cfce1864542b90c998e2219caca914ad4047239.zip
Allow Lexer::getLocForEndOfToken to return the location just passed the macro instantiation
if the location given points at the last token of the macro instantiation. Fixes rdar://9045701. llvm-svn: 133804
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/Parser/recovery.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/Parser/recovery.c b/clang/test/Parser/recovery.c
index 1b33f0225bc..831687dcfca 100644
--- a/clang/test/Parser/recovery.c
+++ b/clang/test/Parser/recovery.c
@@ -74,6 +74,11 @@ void foo() {
X = 4 // expected-error{{expected ';' after expression}}
}
+// rdar://9045701
+void test9045701(int x) {
+#define VALUE 0
+ x = VALUE // expected-error{{expected ';' after expression}}
+}
// rdar://7980651
typedef int intptr_t; // expected-note {{'intptr_t' declared here}}
OpenPOWER on IntegriCloud