repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2014-01-30 Alangi Derick <alangiderick@gmail.com>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
ubsan
/
cxx1y-vla.C
blob
7023c70cea0dfa51c484b3260fbef5dc3569ee47
1
/* { dg-do run } */
2
/* { dg-options "-fsanitize=vla-bound -Wall -Wno-unused-variable -std=c++1y" } */
3
/* { dg-shouldfail "ubsan" } */
4
5
int
6
main (void)
7
{
8
int y = -18;
9
int a[y];
10
return 0;
11
}
12
13
/* { dg-output "terminate called after throwing an instance" } */