aboutsummaryrefslogtreecommitdiff
path: root/test/Parser/cxx-decl.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2010-11-16 18:18:13 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2010-11-16 18:18:13 +0000
commit4383e18fc3d79fd536c6992432e180a11bcb657d (patch)
tree97c8fe80e695f54c1ef03ad6d44712dae74f4cbe /test/Parser/cxx-decl.cpp
parente645c72d1eceb170cd157fc3c725ebf95a74c439 (diff)
Emit a specific diagnostic when typedefing C++ bool, mirroring gcc.
Fixes rdar://8365458 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119359 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Parser/cxx-decl.cpp')
-rw-r--r--test/Parser/cxx-decl.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/Parser/cxx-decl.cpp b/test/Parser/cxx-decl.cpp
index 6b355e814a..6d720d36a2 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 {