view gcc/testsuite/c-c++-common/pr92352.c @ 19:2b5abeee2509 default tip

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents 1830386684a0
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));
}