llvm-for-llvmta/tools/clang/test/SemaObjCXX/standard-conversion-to-bool.mm

14 lines
154 B
Plaintext
Raw Permalink Normal View History

2022-04-25 13:02:35 +02:00
// RUN: %clang_cc1 -fsyntax-only -verify %s
// expected-no-diagnostics
@class NSString;
id a;
NSString *b;
void f() {
bool b1 = a;
bool b2 = b;
}