aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/asm-flag-0.c
blob: e7bd1a585f941e5cf8c435a1617ae422b3897d59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* Test error conditions of asm flag outputs.  */
/* { dg-do compile } */
/* { dg-options "" } */

void a(void)
{
  char x;
  asm("" : "=@cca,@ccc"(x));  /* { dg-error "alternatives not allowed" } */
}

void b(void)
{
  char x;
  asm("" : "=@ccbad"(x)); /* { dg-error "unknown 'asm' flag output" } */
}