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
c++: constexpr empty subobject elision [PR110197]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-empty18.C
blob
4bb9e3dcb64018294dff3d363fe38226010e929c
1
// PR c++/110197
2
// { dg-do compile { target c++11 } }
3
4
struct A { constexpr A(int) { } };
5
struct B { A a; };
6
constexpr B f(int n) { return B{A{n}}; }
7
constexpr B b = f(1);