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