diff options
Diffstat (limited to 'gcc/testsuite/gcc.c-torture')
-rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/20031010-1.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/compile/20031010-1.c b/gcc/testsuite/gcc.c-torture/compile/20031010-1.c new file mode 100644 index 0000000..33c71c6 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/20031010-1.c @@ -0,0 +1,4 @@ +/* This crashed the ARM backend with -mcpu=iwmmxt -O because an insn + required a split which was not available for the iwmmxt. */ +inline int *f1(int* a, int* b) { if (*b < *a) return b; return a; } +int f2(char *d, char *e, int f) { int g = e - d; return *f1(&f, &g); } |