From abf55b3bc04946c5d6ef4d1d5187efb65ecdd6a4 Mon Sep 17 00:00:00 2001 From: loewis Date: Tue, 21 Dec 1999 09:49:39 +0000 Subject: [PATCH] New test case. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31048 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/testsuite/gcc.c-torture/execute/991221-1.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 gcc/testsuite/gcc.c-torture/execute/991221-1.c diff --git a/gcc/testsuite/gcc.c-torture/execute/991221-1.c b/gcc/testsuite/gcc.c-torture/execute/991221-1.c new file mode 100644 index 0000000..7106fee --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/execute/991221-1.c @@ -0,0 +1,13 @@ +int main( void ) +{ + unsigned long totalsize = 80; + unsigned long msize = 64; + + if (sizeof(long) != 4) + exit(0); + + if ( totalsize > (2147483647L * 2UL + 1) + || (msize != 0 && ((msize - 1) > (2147483647L * 2UL + 1) ))) + abort(); + exit( 0 ); +} -- 2.7.4