Fariborz Jahanian | 80b0b42 | 2008-11-20 18:10:58 +0000 | [diff] [blame] | 1 | // RUN: clang -fsyntax-only -fobjc-gc -verify %s |
2 | |||||
3 | struct S { | ||||
4 | __weak id w; // expected-warning {{__weak attribute cannot be specified on a field declaration}} | ||||
5 | __strong id p1; | ||||
6 | }; | ||||
7 | |||||
8 | int main () | ||||
9 | { | ||||
10 | struct I { | ||||
11 | __weak id w1; // expected-warning {{__weak attribute cannot be specified on a field declaration}} | ||||
12 | }; | ||||
13 | } |