Fix the clang-wpa example.
[clang.git] / test / SemaObjC / attr-objc-gc.m
blob47da653afe6e00d832073803fbe491cc385d6fdb
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 static id __attribute((objc_gc(weak))) a;
3 static id __attribute((objc_gc(strong))) b;
5 static id __attribute((objc_gc())) c; // expected-error{{'objc_gc' attribute requires parameter 1 to be a string}}
6 static id __attribute((objc_gc(123))) d; // expected-error{{'objc_gc' attribute requires parameter 1 to be a string}}
7 static id __attribute((objc_gc(foo, 456))) e; // expected-error{{attribute requires 1 argument(s)}}
8 static id __attribute((objc_gc(hello))) f; // expected-warning{{'objc_gc' attribute argument not supported: 'hello'}}