summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr84941.c
blob: a3a4fdcbb24dd7ebcccb739c572850d8eb6da0e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* PR inline-asm/84941 */
/* { dg-do compile } */
/* { dg-skip-if "asm operand has impossible constraints" { hppa*-*-* } } */
/* { dg-options "-O2" } */

void
foo (void)
{
  short *b[1] = { 0 };
  asm volatile ("" : "=m,m" (b), "=r,r" (b) : "1,p" (b));
}