Debian Codegraph @

gcc/testsuite/g++.dg/DRs/dr2387.C

raw
1 // DR 2387
2 // { dg-do run { target c++14 } }
3 // { dg-additional-sources "dr2387-aux.cc" }
4
5 template <int N>
6 const int a = N;
7 template <int N>
8 static const int b = N;
9 template <int N>
10 extern const int c = N;
11 template <int N>
12 const volatile int d = N;
13 template <int N>
14 const int e = N;
15 template <>
16 const int e <43> = 44;
17
18 const int *pa = &a <42>;
19 const int *pb = &b <42>;
20 const int *pc = &c <42>;
21 const volatile int *pd = &d <42>;
22 const int *pe = &e <43>;