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
2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
ubsan
/
vla-1.C
blob
311cdb1d77a740e81ff245adb809437052603eca
1
// { dg-do run }
2
// { dg-options "-Wno-vla -fsanitize=undefined" }
3
// { dg-output "index 1 out of bounds" }
4
5
void f(int i) {
6
int ar[i] = { 42, 24 };
7
}
8
9
int main()
10
{
11
f(1);
12
}