repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Daily bump.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
debug
/
pr110295.C
blob
10cad55709508e9911c2492b7434cdb30018d63c
1
// { dg-do compile }
2
// { dg-options "-g" }
3
4
template <typename T>
5
struct QCachedT
6
{
7
void operator delete(void *, T *) {}
8
};
9
template<int a>
10
void exercise()
11
{
12
struct thing_t
13
: QCachedT<thing_t>
14
{
15
};
16
thing_t *list[1];
17
new thing_t; // { dg-warning "" }
18
}
19
int main() { exercise<1>(); }