diff options
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/compile/920501-12.c')
-rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/920501-12.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/compile/920501-12.c b/gcc/testsuite/gcc.c-torture/compile/920501-12.c new file mode 100644 index 000000000..7eac97246 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/920501-12.c @@ -0,0 +1,10 @@ +/* This test fails on HC11/HC12 when it is compiled without -mshort because + the stack arrays are too large. Force to use 16-bit ints for it. */ +/* { dg-do assemble } */ +/* { dg-xfail-if "" { m6811-*-* m6812-*-* } { "*" } { "-mshort" } } */ + +x(x){ return 3 + x;} +a(x){int y[994]; return 3 + x;} +b(x){int y[999]; return 2*(x + 3);} +A(x){int y[9999];return 2*(x + 3);} +B(x){int y[9949];return 3 + x;} |