OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2008-08-09 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wdtor1.C
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