From: rearnsha Date: Thu, 7 Mar 2002 10:38:25 +0000 (+0000) Subject: * gcc.c-torture/execute/20020307-1.c: New test. X-Git-Tag: upstream/4.9.2~88257 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2895a641fe6f9244b2b20781f63eb36adf234633;p=platform%2Fupstream%2Flinaro-gcc.git * gcc.c-torture/execute/20020307-1.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50399 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 7762357..0df0df6 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2002-03-07 Richard Earnshaw + + * gcc.c-torture/execute/20020307-1.c: New test. + 2002-03-05 Jakub Jelinek * gcc.dg/20020304-1.c: New test. diff --git a/gcc/testsuite/gcc.c-torture/execute/20020307-1.c b/gcc/testsuite/gcc.c-torture/execute/20020307-1.c new file mode 100644 index 0000000..6a0c654 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/execute/20020307-1.c @@ -0,0 +1,69 @@ +#define MASK(N) ((int)((1U << (N)) - 1)) +#define BITS(N) ((1 << ((N) - 1)) + 2) + +#define FUNC(N) void f##N(int j) { if ((j & MASK(N)) >= BITS(N)) abort();} + +FUNC(3) +FUNC(4) +FUNC(5) +FUNC(6) +FUNC(7) +FUNC(8) +FUNC(9) +FUNC(10) +FUNC(11) +FUNC(12) +FUNC(13) +FUNC(14) +FUNC(15) +FUNC(16) +FUNC(17) +FUNC(18) +FUNC(19) +FUNC(20) +FUNC(21) +FUNC(22) +FUNC(23) +FUNC(24) +FUNC(25) +FUNC(26) +FUNC(27) +FUNC(28) +FUNC(29) +FUNC(30) +FUNC(31) + +int main () +{ + f3(0); + f4(0); + f5(0); + f6(0); + f7(0); + f8(0); + f9(0); + f10(0); + f11(0); + f12(0); + f13(0); + f14(0); + f15(0); + f16(0); + f17(0); + f18(0); + f19(0); + f20(0); + f21(0); + f22(0); + f23(0); + f24(0); + f25(0); + f26(0); + f27(0); + f28(0); + f29(0); + f30(0); + f31(0); + + exit(0); +}