| 1 |
// PR c++/31617 |
| 2 |
// Segfault in integer_zerop |
| 3 |
// Origin: Andrew Pinski <[email protected]> |
| 4 |
// { dg-do compile } |
| 5 |
|
| 6 |
struct polynomial { |
| 7 |
~polynomial (); |
| 8 |
}; |
| 9 |
|
| 10 |
void spline_rep1 () |
| 11 |
{ |
| 12 |
new polynomial[0]; // { dg-bogus "allocating zero-element array" } |
| 13 |
} |
| 14 |
|
| 15 |
|