objective-c numeric literal: type of boolean is
that of typedef BOOL if found.
// rdar://11231426
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154595 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/SemaObjCXX/literals.mm b/test/SemaObjCXX/literals.mm
index 1f6782a..eed6765 100644
--- a/test/SemaObjCXX/literals.mm
+++ b/test/SemaObjCXX/literals.mm
@@ -1,6 +1,15 @@
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++0x -fblocks %s
-typedef unsigned char BOOL;
+// rdar://11231426
+typedef bool BOOL;
+
+void y(BOOL (^foo)());
+
+void x() {
+ y(^{
+ return __objc_yes;
+ });
+}
@protocol NSCopying
- copy;