repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
testsuite: 32 bit AIX 2 byte wchar
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp23
/
auto-array3.C
blob
fdf25470fc2ce424887001bbdf065df6fbc1ffa3
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
}