| 1 |
/* { dg-do compile } */ |
| 2 |
|
| 3 |
__attribute__((returns_twice)) int foo(); |
| 4 |
|
| 5 |
struct xio myproc; |
| 6 |
struct xio { |
| 7 |
void (*read_proc)(); |
| 8 |
void (*write_proc)(); |
| 9 |
}; |
| 10 |
|
| 11 |
void dummy_write_proc() { |
| 12 |
switch (foo()) |
| 13 |
default: |
| 14 |
myproc.read_proc = myproc.write_proc = dummy_write_proc; |
| 15 |
} |