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
match: Optimize `max(a,b) == 0` to `(a|b) == 0` for unsigned [PR115275]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wunused-var-23.C
blob
baa1d03d46ca4ab8114df1f0494c9d127d738262
1
// PR c++/64383
2
// { dg-options "-Wunused-variable" }
3
4
struct Y
5
{
6
~Y();
7
};
8
9
struct X
10
{
11
static Y& get();
12
};
13
14
int main()
15
{
16
Y& y = X::get(); // { dg-warning "unused" }
17
}