Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
diagnostic
/
integral-array-size-1.C
blob: 31d67c58d613b4da3865fe92531b4567cbfb7fb9 [
file
] [
log
] [
blame
]
template
<
typename
T
>
void
foo
(
T a
)
{
new
int
[
a
];
// { dg-error "11:size in array new must have integral type" }
}
template
void
foo
(
float
);