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
[AArch64] Fix SVE testsuite failures for ILP32 (PR 83846)
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
vla10.C
blob
f4de532137ed47afb94f7378a49858a1844795bb
1
// PR c++/57402
2
// { dg-do run }
3
// { dg-options "" }
4
// { dg-require-effective-target alloca }
5
6
int i = 2;
7
8
int main()
9
{
10
{
11
int a[i];
12
a[1] = 0xbeef;
13
}
14
{
15
int a[i] = { 1 };
16
if (a[1] != 0)
17
__builtin_abort ();
18
a[1] = 0xbeef;
19
}
20
{
21
int a[i] = { };
22
if (a[1] != 0)
23
__builtin_abort ();
24
a[1] = 0xbeef;
25
}
26
}