Debian Codegraph @

gcc/testsuite/g++.dg/abi/no-linkage-expr1.C

raw
1 // { dg-do compile { target c++11 } }
2 // { dg-final { scan-assembler-not "weak.*_Z" } }
3
4 using P = struct {}*;
5
6 template <int N>
7 void f(int(*)[((P)0, N)]) {}
8
9 template <int N>
10 struct A { };
11
12 template <int N>
13 void g(A<((P)0,N)>) {}
14
15 int main()
16 {
17 f<1>(0);
18 g<1>({});
19 }