aboutsummaryrefslogtreecommitdiff
path: root/test/Parser/cxx-casting.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2012-08-20 17:37:52 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2012-08-20 17:37:52 +0000
commit78fe3e05a9ea1fc670e5cb0bc54f54e064595e2c (patch)
tree056febeb53f25bed88d3fe67553f43b8b40263ee /test/Parser/cxx-casting.cpp
parentdf4ee102aa909e2f40c294701bfeffac63e8d29b (diff)
PR13619: Make sure we're not at EOF before looking at NextToken().
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162212 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Parser/cxx-casting.cpp')
-rw-r--r--test/Parser/cxx-casting.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/Parser/cxx-casting.cpp b/test/Parser/cxx-casting.cpp
index e7d05b4047..01980d3341 100644
--- a/test/Parser/cxx-casting.cpp
+++ b/test/Parser/cxx-casting.cpp
@@ -89,3 +89,6 @@ void test3() {
// expected-error {{expected expression}} \
// expected-error {{expected unqualified-id}}
}
+
+// PR13619. Must be at end of file.
+int n = reinterpret_cast // expected-error {{expected '<'}} expected-error {{expected ';'}}