summaryrefslogtreecommitdiffstats
path: root/clang/test/Lexer/block_cmt_end.c
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2009-11-03 19:26:08 +0000
committerJohn McCall <rjmccall@apple.com>2009-11-03 19:26:08 +0000
commitd5a36321b91150206c35eb691cbb646dd3fc74c4 (patch)
treef8e43a09cc7e5cb74b9e9b29fb44a1074087a104 /clang/test/Lexer/block_cmt_end.c
parentcde8de519d429f65efc0279dfd5b35d045d6a9e7 (diff)
downloadbcm5719-llvm-d5a36321b91150206c35eb691cbb646dd3fc74c4.tar.gz
bcm5719-llvm-d5a36321b91150206c35eb691cbb646dd3fc74c4.zip
Reorganize the parsing of decl groups / function definitions so that
declarators are parsed primarily within a single function (at least for these cases). Remove some excess diagnostics arising during parse failures. llvm-svn: 85924
Diffstat (limited to 'clang/test/Lexer/block_cmt_end.c')
-rw-r--r--clang/test/Lexer/block_cmt_end.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Lexer/block_cmt_end.c b/clang/test/Lexer/block_cmt_end.c
index d85cf81f214..83d6cf18924 100644
--- a/clang/test/Lexer/block_cmt_end.c
+++ b/clang/test/Lexer/block_cmt_end.c
@@ -17,7 +17,7 @@ next comment ends with normal escaped newline:
/* expected-warning {{escaped newline}} expected-warning {{backslash and newline}} *\
/
-int bar
+int bar /* expected-error {{invalid token after top level declarator}} */
/* xyz
@@ -26,7 +26,7 @@ next comment ends with a trigraph escaped newline: */
/* expected-warning {{escaped newline between}} expected-warning {{backslash and newline separated by space}} expected-warning {{trigraph ends block comment}} *??/
/
-foo /* expected-error {{invalid token after top level declarator}} */
+foo
// rdar://6060752 - We should not get warnings about trigraphs in comments:
OpenPOWER on IntegriCloud