aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/powerpc/pr99888-5.c
blob: 39d3b4465f111180b84bc09e9808a5f22be071e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-require-effective-target powerpc_elfv2 } */
/* There is no global entry point prologue with pcrel.  */
/* { dg-options "-mno-pcrel -fpatchable-function-entry=7,3" } */

/* Verify one error emitted for unexpected 3 nops before local
   entry.  */

extern int a;

int test (int b) {
  return a + b;
}
/* { dg-error "unsupported number of nops before function entry \\(3\\)" "" { target *-*-* } .-1 } */