Debian Codegraph @

gcc/testsuite/g++.dg/cpp23/auto-array3.C

raw
1 // PR c++/102414
2 // PR c++/101874
3 // { dg-do compile { target c++11 } }
4 // { dg-options "" }
5
6 constexpr int sz () { return 3; }
7
8 void f ()
9 {
10 int a[3];
11 const int N = 3;
12 auto (*a2)[N] = &a;
13 constexpr int M = 3;
14 auto (*a3)[M] = &a;
15 auto (*a4)[sz()] = &a;
16 }