summaryrefslogtreecommitdiff
path: root/clang/test/SemaObjCXX/standard-conversion-to-bool.mm
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/SemaObjCXX/standard-conversion-to-bool.mm')
-rw-r--r--clang/test/SemaObjCXX/standard-conversion-to-bool.mm12
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/SemaObjCXX/standard-conversion-to-bool.mm b/clang/test/SemaObjCXX/standard-conversion-to-bool.mm
new file mode 100644
index 0000000..2e69848
--- /dev/null
+++ b/clang/test/SemaObjCXX/standard-conversion-to-bool.mm
@@ -0,0 +1,12 @@
+// RUN: %clang_cc1 -fsyntax-only -verify %s
+
+@class NSString;
+id a;
+NSString *b;
+
+void f() {
+ bool b1 = a;
+ bool b2 = b;
+}
+
+