Fix ICE in substring-handling building 502.gcc_r (PR 87562)
[official-gcc.git] / gcc / testsuite / c-c++-common / pr51768.c
blob082594ccad7a1aac9b67eba4cecb1bcfc3370fb9
1 /* PR middle-end/51768 */
2 /* { dg-do compile } */
3 /* { dg-options "" } */
5 void
6 foo (void)
8 asm goto ("" : : : : lab, lab, lab2, lab); /* { dg-error "duplicate asm operand name" } */
9 lab:;
10 lab2:;
13 void
14 bar (void)
16 asm goto ("" : : [lab] "i" (0) : : lab); /* { dg-error "duplicate asm operand name" } */
17 lab:;
20 void
21 baz (void)
23 int x;
24 asm ("" : [lab] "=r" (x) : [lab] "r" (x)); /* { dg-error "duplicate asm operand name" } */