diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/mips/fuse-caller-save.h')
-rw-r--r-- | gcc/testsuite/gcc.target/mips/fuse-caller-save.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/mips/fuse-caller-save.h b/gcc/testsuite/gcc.target/mips/fuse-caller-save.h new file mode 100644 index 00000000000..edf6039f9b2 --- /dev/null +++ b/gcc/testsuite/gcc.target/mips/fuse-caller-save.h @@ -0,0 +1,17 @@ +static int __attribute__((noinline)) ATTRIBUTE +bar (int x) +{ + return x + 3; +} + +int __attribute__((noinline)) ATTRIBUTE +foo (int y) +{ + return y + bar (y); +} + +int ATTRIBUTE +main (void) +{ + return !(foo (5) == 13); +} |