☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
diagnostic
/
integral-array-size-1.C
☽
☼
gcc/testsuite/g++.dg/diagnostic/integral-array-size-1.C
code
plain
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);