parent
18e780d460
commit
32b671f05a
|
@ -1,13 +0,0 @@
|
|||
/* { dg-do run } */
|
||||
/* { dg-options "-fsanitize=vla-bound -Wall -Wno-unused-variable -std=c++14" } */
|
||||
/* { dg-shouldfail "ubsan" } */
|
||||
|
||||
int
|
||||
main (void)
|
||||
{
|
||||
int y = -18;
|
||||
int a[y];
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* { dg-output "terminate called after throwing an instance" } */
|
Loading…
Reference in New Issue