summaryrefslogtreecommitdiff
path: root/clang/test/SemaObjCXX/standard-conversion-to-bool.mm
blob: 2e6984872d793925cac3b3a22dee838a5f8d7db1 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: %clang_cc1 -fsyntax-only -verify %s

@class NSString;
id a;
NSString *b;

void f() {
  bool b1 = a;
  bool b2 = b;
}