summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/20000504-1.c
blob: 1941bb34da580389ddd46be3d840c8d8eba61827 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
struct foo {
	int a;
	int b;
};

int func(struct foo *foo, int a)
{
	if (foo->b == 0) {
		int ret = foo->a = a;
		if (a >= 0)
			foo->a = a;
		return (ret);
 	}
	return (0);
}