Use dg-additional-options for gfortran.dg/vect/vect-8.f90 and RISC-V
[official-gcc.git] / gcc / testsuite / g++.dg / debug / pr110295.C
blob10cad55709508e9911c2492b7434cdb30018d63c
1 // { dg-do compile }
2 // { dg-options "-g" }
4 template <typename T>
5 struct QCachedT
7   void operator delete(void *, T *) {}
8 };
9 template<int a>
10 void exercise()
12   struct thing_t
13     : QCachedT<thing_t>
14   {
15   };
16   thing_t *list[1];
17   new thing_t; // { dg-warning "" }
19 int main() { exercise<1>(); }