OSDN Git Service

* gcc.target/sh/mfmovd.c: Extend list of supported targets.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.target / powerpc / no-r11-3.c
1 /* { dg-do compile { target { powerpc*-*-* && lp64 } } } */
2 /* { dg-skip-if "" { *-*-darwin* } { "*" } { "" } } */
3 /* { dg-options "-O2 -mno-pointers-to-nested-functions" } */
4
5 extern void ext_call (int (func) (void));
6
7 int
8 outer_func (int init)   /* { dg-error "-mno-r11 must not be used if you have trampolines" "" } */
9 {
10   int value = init;
11
12   int inner (void)
13   {
14     return ++value;
15   }
16
17   ext_call (inner);
18   return value;
19 }
20