aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/powerpc/pr99888-4.c
blob: 00a8d4d316e0ad8a800290a7bc5e11f722a5a39d (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=1,1" } */

/* Verify one error emitted for unexpected 1 nop before local
   entry.  */

extern int a;

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