1 /* Check error messages for named asm operands. */
foo()2 void foo ()
3 {
4 int i;
5 __asm__ ("" : [data] "=r" (i) : [data] "i" (100)); /* { dg-error "duplicate 'asm' operand" } */
6 __asm__ ("%[foo]" :: [bar] "i" (1)); /* { dg-error "undefined named operand" } */
7 }
8