Projet_SETI_RISC-V/riscv-gnu-toolchain/gcc/gcc/testsuite/gcc.dg/pr50571.c

12 lines
187 B
C

/* PR inline-asm/50571 */
/* { dg-do compile } */
/* { dg-options "-O2" } */
static const int var[4] = { 1, 2, 3, 4 };
void
foo (void)
{
__asm volatile ("" : : "m" (*(int *) var));
}