From 39fcc9a984e2820e4ea0fa2ac4abd17d9f3a31df Mon Sep 17 00:00:00 2001 From: dim Date: Sun, 20 Feb 2011 13:06:31 +0000 Subject: Vendor import of clang trunk r126079: http://llvm.org/svn/llvm-project/cfe/trunk@126079 --- test/Parser/cxx-decl.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'test/Parser/cxx-decl.cpp') diff --git a/test/Parser/cxx-decl.cpp b/test/Parser/cxx-decl.cpp index e00ffd0..6d720d3 100644 --- a/test/Parser/cxx-decl.cpp +++ b/test/Parser/cxx-decl.cpp @@ -6,6 +6,9 @@ struct Type { int Type; }; +// rdar://8365458 +typedef char bool; // expected-error {{redeclaration of C++ built-in type 'bool'}} \ + // expected-warning {{declaration does not declare anything}} // PR4451 - We should recover well from the typo of '::' as ':' in a2. namespace y { @@ -83,3 +86,14 @@ struct CodeCompleteConsumer { void CodeCompleteConsumer::() { // expected-error {{xpected unqualified-id}} } + +; + +// PR8380 +extern "" // expected-error {{unknown linkage language}} +test6a { ;// expected-error {{C++ requires a type specifier for all declarations}} \ + // expected-error {{expected ';' after top level declarator}} + + int test6b; + + -- cgit v1.1