Lines Matching full:__attribute__
3 int __attribute__(()) x;
5 __inline void __attribute__((__always_inline__, __nodebug__))
10 __attribute__(()) y; // expected-warning {{defaults to 'int'}}
13 int (__attribute__(()) *z)(long y);
16 void f1(__attribute__(()) int x);
18 int f2(y, __attribute__(()) x); // expected-error {{expected identifier}}
21 // int) because the __attribute__ is a declspec.
22 void f3(__attribute__(()) x, // expected-warning {{defaults to 'int'}}
25 void f4(__attribute__(())); // expected-error {{expected parameter declarator}}
28 // This is ok, the __attribute__ applies to the pointer.
29 int baz(int (__attribute__(()) *x)(long y));
31 void g1(void (*f1)(__attribute__(()) int x));
32 void g2(int (*f2)(y, __attribute__(()) x)); // expected-error {{expected identifier}}
33 void g3(void (*f3)(__attribute__(()) x, int y)); // expected-warning {{defaults to 'int'}}
34 void g4(void (*f4)(__attribute__(()))); // expected-error {{expected parameter declarator}}
37 void (*h1)(void (*f1)(__attribute__(()) int x));
38 void (*h2)(int (*f2)(y, __attribute__(()) x)); // expected-error {{expected identifier}}
40 void (*h3)(void (*f3)(__attribute__(()) x)); // expected-warning {{defaults to 'int'}}
41 void (*h4)(void (*f4)(__attribute__(()))); // expected-error {{expected parameter declarator}}
47 int x, __attribute__((unused)) y, z;
52 void __attribute__((noreturn)) d0(void), __attribute__((noreturn)) d1(void);
54 void d2(void) __attribute__((noreturn)), d3(void) __attribute__((noreturn));
58 void __attribute__((returns_twice)) returns_twice_test();
61 int __attribute__((vec_type_hint(char, aligned(16) )) missing_rparen_1; // expected-error 2{{expected ')'}} expected-note {{to match}} expected-warning {{does not declare anything}}
62 int __attribute__((mode(x aligned(16) )) missing_rparen_2; // expected-error {{expected ')'}}
63 int __attribute__((format(printf, 0 aligned(16) )) missing_rparen_3; // expected-error {{expected ')'}}
67 int testFundef1(int *a) __attribute__((nonnull(1))) { // \
73 void testFundef2() __attribute__((noreturn)) { // \
78 int testFundef3(int *a) __attribute__((nonnull(1), // \
85 int testFundef4(int *a) __attribute__((nonnull(1))) // \
93 void testFundef5() __attribute__(()) { }
95 __attribute__((pure)) int testFundef6(int a) { return a; }
97 void deprecatedTestFun(void) __attribute__((deprecated()));