Daniel Dunbar | d7d5f02 | 2009-03-24 02:24:46 +0000 | [diff] [blame^] | 1 | // RUN: clang-cc -fsyntax-only -verify %s |
Anders Carlsson | 6e14a8f | 2008-08-24 16:33:25 +0000 | [diff] [blame] | 2 | static id __attribute((objc_gc(weak))) a; |
| 3 | static id __attribute((objc_gc(strong))) b; |
| 4 | |
| 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'}} |