1 // RUN: %clang_cc1 -triple i386-apple-darwin9 -fsyntax-only -fobjc-gc -verify %s
2 // RUN: %clang_cc1 -x objective-c++ -triple i386-apple-darwin9 -fsyntax-only -fobjc-gc -verify %s
5 __weak id w; // expected-warning {{__weak attribute cannot be specified on a field declaration}}
17 - (void) foo { w = 0; LHS = w; }
23 __weak id w1; // expected-warning {{__weak attribute cannot be specified on a field declaration}}