summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/unsorted/BUG21.c
blob: c8a1157cc460bb06c299833d733f72e6150db2d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
typedef struct {
	int knock_on_wood;		/* leave it out and it works. */
	int f1;
} FOO;

typedef struct {
	FOO *b1;
} BAR;

Nase ()
{
	int i, j;
	FOO *foop;
	BAR *barp;

	for (i = 0; i < 2; i++) {
		foop = &barp->b1[i];
		for (j = 0; j < foop->f1; j++) {
			/* dummy() */;		/* put it in and it works. */
		}
	}
}