aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/20030120-1.c
blob: 05689ad0961a407fa121c04d1309fdf92fc5b84d (plain)
1
2
3
4
5
6
7
8
9
10
/* PR 7154 */
/* { dg-do compile } */
/* { dg-options "-O -fpic" } */
/* { dg-warning "not supported" "PIC unsupported" { target cris-*-elf* mmix-*-* } 0 } */

const int x[1]={ 1 };
void foo(int i, int *p)
{
  asm volatile("" : "+r"(i) : "m" (x[0]), "r"(p));
}