gcc/testsuite/gcc.c-torture/compile/20001123-2.c
raw| 1 | /* Copyright 2000 Free Software Foundation |
| 2 | |
| 3 | by Alexandre Oliva <[email protected]> |
| 4 | |
| 5 | Based on zlib/gzio.c. |
| 6 | |
| 7 | This used to generate duplicate labels when compiled with |
| 8 | sh-elf-gcc -O2 -m3 -fPIC. |
| 9 | |
| 10 | Bug reported by NIIBE Yutaka <[email protected]>. */ |
| 11 | |
| 12 | void foo (void); |
| 13 | |
| 14 | void |
| 15 | bar () |
| 16 | { |
| 17 | unsigned len; |
| 18 | |
| 19 | for (len = 0; len < 2; len++) |
| 20 | foo (); |
| 21 | } |