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