blob: fd818557f5e72c55bb5047928e769b9533e7e501 [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
Anders Carlsson6e14a8f2008-08-24 16:33:25 +00002static id __attribute((objc_gc(weak))) a;
3static id __attribute((objc_gc(strong))) b;
4
5static id __attribute((objc_gc())) c; // expected-error{{'objc_gc' attribute requires parameter 1 to be a string}}
6static id __attribute((objc_gc(123))) d; // expected-error{{'objc_gc' attribute requires parameter 1 to be a string}}
John McCallbdc49d32011-03-02 12:15:05 +00007static id __attribute((objc_gc(foo, 456))) e; // expected-error{{attribute takes one argument}}
Anders Carlsson6e14a8f2008-08-24 16:33:25 +00008static id __attribute((objc_gc(hello))) f; // expected-warning{{'objc_gc' attribute argument not supported: 'hello'}}