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
Merged r158907 through r159238 into branch.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wdtor1.C
blob
34c8a7edcada3dd8ec980f5ca25b80c71aca7802
1
// PR c++/20145
2
// { dg-options "-Wnon-virtual-dtor" }
3
# 1 "t.cc"
4
# 1 "<built-in>"
5
# 1 "<command line>"
6
# 1 "t.cc"
7
# 1 "include/t.h" 1 3 4
8
// Declare the template with explicit C++ linkage in case system
9
// headers have implicit C linkage.
10
extern "C++" {
11
template <int> class t
12
{
13
virtual void f();
14
};
15
}
16
# 2 "t.cc" 2
17
18
void f(void)
19
{
20
t<1> h;
21
}
22