blob: 356818f9ec8cc31f0a33891a983bdc04bf1d50a7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
struct { char *m; long n; } a[20];
int b = 20, c;
void bar(void) __attribute__((__noreturn__));
int
foo(int x)
{
int i;
for (i = 0; i < x; i++)
{
a[0].m = "a"; a[0].n = 10; c=1;
a[c].m = "b"; a[c].n = 32; c++;
if (c >= b) bar ();
a[c].m = "c"; a[c].n = 80; c++;
if (c >= b) bar ();
}
return 0;
}
|