gcc/testsuite/g++.dg/ext/attr-used-2.C
raw| 1 | // PR c++/67453 |
| 2 | // { dg-do compile } |
| 3 | // { dg-final { scan-assembler "_ZN1SC\[12]Ev" } } |
| 4 | // { dg-final { scan-assembler "_ZN1SD\[12]Ev" } } |
| 5 | // { dg-final { scan-assembler "_ZN1SC\[12]ERKS_" } } |
| 6 | |
| 7 | struct S { |
| 8 | S(); |
| 9 | ~S(); |
| 10 | S(const S&); |
| 11 | }; |
| 12 | |
| 13 | __attribute__((used)) inline S::S() { } |
| 14 | __attribute__((used)) inline S::~S() { } |
| 15 | __attribute__((used)) inline S::S(const S&) { } |