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
PR lto/84212 - -Wno-* does not disable warnings from -flto link stage
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
ref-temp1.C
blob
26f1ca5de84b6945a0f5dce80c9ad6fa62fd6799
1
// PR c++/986
2
// { dg-options "-Wall -Wextra" }
3
4
struct X { X (int); };
5
6
struct Y {
7
Y ();
8
const X &x; // note the ampersand
9
};
10
11
Y::Y () : x(1) {} // { dg-warning "temporary" }