| 1 |
// PR c++/70435 |
| 2 |
// { dg-do compile { target { c++11 && named_sections } } } |
| 3 |
|
| 4 |
template<class T> |
| 5 |
struct A { |
| 6 |
[[gnu::section(".foo")]] void fun() { } |
| 7 |
}; |
| 8 |
|
| 9 |
template struct A<int>; |
| 10 |
|
| 11 |
// { dg-final { scan-assembler {.(section|csect)[ \t]+.+foo} } } |