llvm-project/clang/test/SemaObjCXX/standard-conversion-to-bool.mm

13 lines
127 B
Plaintext

// RUN: %clang_cc1 -fsyntax-only -verify %s
@class NSString;
id a;
NSString *b;
void f() {
bool b1 = a;
bool b2 = b;
}