Debian Codegraph @

gcc/testsuite/g++.dg/debug/pr110295.C

raw
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>(); }