| 1 |
// { dg-options "-Wabi-tag" } |
| 2 |
|
| 3 |
// { dg-final { scan-assembler "_Z1fB3barB3fooi" } } |
| 4 |
void f(int) __attribute ((abi_tag ("foo","bar"))); |
| 5 |
|
| 6 |
struct __attribute ((abi_tag ("bar"))) A { }; |
| 7 |
|
| 8 |
struct B: A { }; // { dg-warning "bar. ABI tag" } |
| 9 |
struct D { A* ap; }; // { dg-warning "bar. ABI tag" } |
| 10 |
|
| 11 |
// { dg-final { scan-assembler "_Z1gB3baz1AB3bar" } } |
| 12 |
void g(A) __attribute ((abi_tag ("baz"))); |
| 13 |
void g(A) __attribute ((abi_tag ("baz"))); |
| 14 |
|
| 15 |
int main() |
| 16 |
{ |
| 17 |
f(42); |
| 18 |
g(A()); |
| 19 |
} |