Debian Codegraph @

gcc/testsuite/g++.dg/abi/abi-tag25.C

raw
1 // PR c++/109715
2 // { dg-do compile { target c++11 } }
3
4 template<class T>
5 [[gnu::abi_tag("foo")]] void fun() { }
6
7 template void fun<int>();
8
9 #if __cpp_variable_templates
10 template<class T>
11 [[gnu::abi_tag("foo")]] int var = 0;
12
13 template int var<int>;
14 #endif
15
16 // { dg-final { scan-assembler "_Z3funB3fooIiEvv" } }
17 // { dg-final { scan-assembler "_Z3varB3fooIiE" { target c++14 } } }