gcc/testsuite/gcc.c-torture/compile/pr51694.c
raw| 1 | /* { dg-require-effective-target untyped_assembly } */ |
| 2 | /* { dg-require-effective-target indirect_calls } */ |
| 3 | /* { dg-additional-options "-std=gnu17 -fpermissive" } */ |
| 4 | |
| 5 | void |
| 6 | foo (x, fn) |
| 7 | void (*fn) (); |
| 8 | { |
| 9 | int a = baz ((void *) 0, x); |
| 10 | (*fn) (x, 0); |
| 11 | } |
| 12 | |
| 13 | void |
| 14 | bar (void) |
| 15 | { |
| 16 | void *x = 0; |
| 17 | foo (x); |
| 18 | } |