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
gcc/ChangeLog:
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wunused-function1.C
blob
86b319a68e53024e2f6f8e260c1f20aeb7037db7
1
// PR bootstrap/66448
2
// { dg-options "-Wunused-function" }
3
4
struct A { A(); };
5
namespace {
6
struct B: virtual A { B(); };
7
B::B() { }
8
B b;
9
10
struct C: virtual A { C(); };
11
C::C() { } // { dg-warning "defined but not used" }
12
}