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
* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.brendan
/
warnings7.C
blob
89d6ecaf586b4f98b52a01873b08b3a316780a50
1
// { dg-do assemble }
2
// { dg-options "-O2 -Wall" }
3
// GROUPS passed warnings
4
template<class T>
5
class X {
6
public:
7
void kill(unsigned i)
8
{ vec[i].~T(); }
9
T *vec;
10
};
11
12
class Y { };
13
14
void
15
x()
16
{
17
X<int> x;
18
x.kill(0);
19
X<Y> y;
20
y.kill(0);
21
}