aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/inline-ns1.C
blob: 69813b6ed323122fca75f7666954b5e90be9844b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// { dg-do compile { target c++11 } }
// { dg-final { scan-assembler "_ZN1Q2V11fEv" } }
// { dg-final { scan-assembler "_ZN1Q2V11iE" } }

namespace Q {
  inline namespace V1 {
    extern int i;
    void f();
  }
}
int Q::i = 1;
void Q::f() { }