| 1 |
// { dg-warning "Callback to register attributes" "" { target *-*-* } 0 } |
| 2 |
|
| 3 |
void normal_func (char c, char c2); |
| 4 |
void normal_func (char __attribute__((user("param"))) c, char); |
| 5 |
void normal_func (char c, char __attribute__((user("param"))) c2) |
| 6 |
{ |
| 7 |
} // { dg-warning "attribute 'user' on param 'c' of function normal_func" } |
| 8 |
// { dg-warning "attribute 'user' on param 'c2' of function normal_func" "" { target *-*-* } .-1 } |
| 9 |
|
| 10 |
class Foo { |
| 11 |
void method (char __attribute__((user("param"))) c); |
| 12 |
}; |
| 13 |
|
| 14 |
void Foo::method(char c) |
| 15 |
{ |
| 16 |
} // { dg-warning "attribute 'user' on param 'c' of function method" } |