view gcc/testsuite/c-c++-common/pr92352.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents
children
line wrap: on
line source

/* PR inline-asm/92352 */

void
foo (int x)
{
  int var[x];
  asm volatile ("" : "+r" (var));	/* { dg-error "impossible constraint in 'asm'" } */
}					/* { dg-error "non-memory output 0 must stay in memory" "" { target *-*-* } .-1 } */

void
bar (int x)
{
  int var[x];
  asm volatile ("" : "+m" (var));
}