summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/asm-flag-7.c
blob: 11309972f692a802e7d3daa9cc78c917c3830593 (plain)
1
2
3
4
5
6
7
8
9
/* Test error conditions of asm flag outputs.  */
/* { dg-do compile } */
/* { dg-options "" } */

void test(void)
{
  char x;
  asm("# %0" : "=@ccz"(x)); /* { dg-error "invalid use of asm flag output" } */
}