diff options
Diffstat (limited to 'clang/test/SemaObjCXX/standard-conversion-to-bool.mm')
-rw-r--r-- | clang/test/SemaObjCXX/standard-conversion-to-bool.mm | 12 |
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; +} + + |