// PR c++/70435 // { dg-do compile { target { c++11 && named_sections } } } template struct A { [[gnu::section(".foo")]] void fun() { } }; template struct A; // { dg-final { scan-assembler {.(section|csect)[ \t]+.+foo} } }