freebsd-skq/test/SemaObjCXX/standard-conversion-to-bool.mm

14 lines
154 B
Plaintext

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