aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/abi/abi-tag16.C
blob: 3027d7906f51fb02a889b3f5ab95a4e8946bbdb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// { dg-options "-Wabi=9 -fno-implicit-constexpr" }
// { dg-final { scan-assembler "_ZGVZN1N1FEvE4NameB5cxx11" } }
namespace std {
  __extension__ inline namespace __cxx11 __attribute__((abi_tag("cxx11"))) {
    struct String {
      String();
    };
  }
}
namespace N {
  inline void F() {
    {
      static std::String Name;	// { dg-warning "mangled name" }
    }
  }
  void F2() {
    F();
  }
}