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-prvalue2.C
blob
46053231cf83b27014bba94d4c8a146c293b265c
1
// PR c++/117980
2
// { dg-do compile { target c++11 } }
3
// { dg-options "-O" }
4
5
struct S {
6
constexpr S(S &); // { dg-warning "used but never defined" }
7
~S();
8
};
9
struct B {
10
S s;
11
};
12
struct A {
13
B b;
14
};
15
void fn(B b) { A{b}; }