Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
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
);