blob: 6f81491f1ffa48a03c52fd4da6046233b648d457 [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 %s -fsyntax-only -verify
Nate Begeman86e07b62008-02-21 19:44:16 +00002
3void __attribute__((annotate("foo"))) foo(float *a) {
4 __attribute__((annotate("bar"))) int x;
5 __attribute__((annotate(1))) int y; // expected-error {{argument to annotate attribute was not a string literal}}
John McCallbdc49d32011-03-02 12:15:05 +00006 __attribute__((annotate("bar", 1))) int z; // expected-error {{attribute takes one argument}}
Nate Begeman86e07b62008-02-21 19:44:16 +00007}