summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/920501-12.c
blob: 7eac97246777050c51c74342276cbb476dc29c09 (plain)
1
2
3
4
5
6
7
8
9
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;}