* class.c (check_tag): Handle variables and functions.
[official-gcc.git] / gcc / testsuite / g++.dg / abi / abi-tag14.C
blob65643bdcad7a5879ee5e6dc126dcfeaab15871c5
1 // { dg-options "-Wabi-tag" }
3 inline namespace __cxx11 __attribute ((abi_tag ("cxx11"))) {
4   struct A {};
5 };
7 // { dg-final { scan-assembler "_Z1aB5cxx11" } }
8 A a;                            // { dg-warning "\"cxx11\"" }
10 // { dg-final { scan-assembler "_Z1fB5cxx11v" } }
11 A f() {}                        // { dg-warning "\"cxx11\"" }