Debian Codegraph @

gcc/testsuite/g++.dg/diagnostic/integral-array-size-1.C

raw
1 template<typename T>
2 void foo(T a)
3 {
4 new int[a]; // { dg-error "11:size in array new must have integral type" }
5 }
6
7 template void foo(float);