repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-empty19.C
blob
5ad67682c5bc82134d4e5d52bd09c59cb0e0615c
1
// PR c++/110197
2
// { dg-do compile { target c++11 } }
3
4
struct A {
5
constexpr A() : A(__builtin_is_constant_evaluated()) { }
6
constexpr A(int) { }
7
};
8
constexpr A a1[1] = {{}};
9
constexpr A a2[2] = {{}, {}};
10
constexpr A a3[3] = {{}, {}, {}};
11
constexpr A a4[4] = {};
12
constexpr A a5[5] = {};