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
2017-06-14 Paolo Carlini <paolo.carlini@oracle.com>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wunused-var-22.C
blob
8ae46c17f8201c490778e058f2fef439d9adc7c5
1
// PR c++/63657
2
// { dg-options "-Wunused-variable" }
3
4
class Bar
5
{
6
virtual ~Bar() {}
7
};
8
Bar& getbar();
9
void bar()
10
{
11
Bar& b = getbar(); // { dg-warning "unused" }
12
}