[gcc]
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / asm-flag-0.c
blobb0c05239b013ba3a10d6b2612ec106d731f4f2ec
1 /* Test error conditions of asm flag outputs. */
2 /* { dg-do compile } */
3 /* { dg-options "" } */
5 void a(void)
7 char x;
8 asm("" : "=@cca,@ccc"(x)); /* { dg-error "alternatives not allowed" } */
11 void b(void)
13 char x;
14 asm("" : "=@ccbad"(x)); /* { dg-error "unknown asm flag output" } */