* expmed.c (flip_storage_order): Deal with complex modes specially.
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / pr42231.c
blob2e46f5f3604230d5105fc08dad886435b42a3a9e
1 extern void abort (void);
3 static max;
5 static void __attribute__((noinline)) storemax (int i)
7 if (i > max)
8 max = i;
11 static int CallFunctionRec(int (*fun)(int depth), int depth) {
12 if (!fun(depth)) {
13 return 0;
15 if (depth < 10) {
16 CallFunctionRec(fun, depth + 1);
18 return 1;
21 static int CallFunction(int (*fun)(int depth)) {
22 return CallFunctionRec(fun, 1) && !fun(0);
25 static int callback(int depth) {
26 storemax (depth);
27 return depth != 0;
30 int main() {
31 CallFunction(callback);
32 if (max != 10)
33 abort ();
34 return 0;