diff options
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/compile/labels-1.c')
-rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/labels-1.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/compile/labels-1.c b/gcc/testsuite/gcc.c-torture/compile/labels-1.c new file mode 100644 index 00000000000..fae6ab8f400 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/labels-1.c @@ -0,0 +1,13 @@ +#ifndef NO_LABEL_VALUES +f () +{ + void *x = &&L2; + if (&&L3 - &&L1 > 1) + abort(); + L1: return 1; + L2: abort (); + L3:; +} +#else +int x; +#endif |