blob: b11a7e5be13a1cb024d0dcac5980810eb79fef41 [file] [log] [blame]
Chris Lattner4dcf151a2009-04-22 05:57:30 +00001// Test this without pch.
2// RUN: clang-cc -fblocks -include %S/objc_exprs.h -fsyntax-only -verify %s &&
3
4// Test with pch.
5// RUN: clang-cc -x objective-c-header -emit-pch -fblocks -o %t %S/objc_exprs.h &&
6// RUN: clang-cc -fblocks -include-pch %t -fsyntax-only -verify %s
7
Chris Lattner3a57a372009-04-22 06:29:42 +00008
9
10int *A1 = (objc_string)0; // expected-warning {{'struct objc_object *'}}
11
12char A2 = (objc_encode){}; // expected-error {{initializer element is not a compile-time constant}} \
13 expected-warning {{char [2]}}
14
15int *A3 = (objc_protocol)0; // expected-warning {{aka 'Protocol *'}}
16
17
18