blob: 7513d93a43db917d0d493be6f3870aa87551bdfc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
/* { dg-require-effective-target section_anchors } */
#include <stdarg.h>
#include "tree-vect.h"
short x;
static short f[100] = {0};
int
bar (void)
{
return f[0];
}
void
foo (void)
{
int i;
for (i = 0; i < 100; i++)
f[i]++;
}
int main (void)
{
int i;
check_vect ();
foo ();
for (i = 0; i < 100; i++)
if (f[i]!=1)
abort ();
return 0;
}
/* { dg-final { cleanup-tree-dump "vect" } } */
|