diff options
| author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2010-11-16 18:18:13 +0000 |
|---|---|---|
| committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2010-11-16 18:18:13 +0000 |
| commit | 20ee5ae8710ad38cfae9477bb401362b1f3f22c5 (patch) | |
| tree | 93b9408158ba8f43504e422233ee27005b704e2f /clang/test/Parser | |
| parent | d6b675541406727e6205ff698f922c36b69cc5a1 (diff) | |
| download | bcm5719-llvm-20ee5ae8710ad38cfae9477bb401362b1f3f22c5.tar.gz bcm5719-llvm-20ee5ae8710ad38cfae9477bb401362b1f3f22c5.zip | |
Emit a specific diagnostic when typedefing C++ bool, mirroring gcc.
Fixes rdar://8365458
llvm-svn: 119359
Diffstat (limited to 'clang/test/Parser')
| -rw-r--r-- | clang/test/Parser/cxx-decl.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/Parser/cxx-decl.cpp b/clang/test/Parser/cxx-decl.cpp index 6b355e814a8..6d720d36a25 100644 --- a/clang/test/Parser/cxx-decl.cpp +++ b/clang/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 { |

