aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/abi/abi-tag16a.C
blob: 12fe312595fa11a22b50d18eaf7a7cc3d0cf76f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// { dg-options "-fabi-version=9" }
// { dg-final { scan-assembler "_ZGVZN1N1FEvE4Name" } }
namespace std {
  __extension__ inline namespace __cxx11 __attribute__((abi_tag("cxx11"))) {
    struct String {
      String();
    };
  }
}
namespace N {
  inline void F() {
    {
      static std::String Name;
    }
  }
  void F2() {
    F();
  }
}