From bb078eb403f8be5f3976facaedf1c34e8a0b2f77 Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Sun, 28 May 2000 23:31:55 +0000 Subject: [PATCH] * gcc.c-torture/execute/20000528-1.c: New test. From-SVN: r34242 --- gcc/testsuite/ChangeLog | 2 ++ gcc/testsuite/gcc.c-torture/execute/20000528-1.c | 13 +++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 gcc/testsuite/gcc.c-torture/execute/20000528-1.c diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index dfcaf37b86f..f9d89e984e9 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,7 @@ 2000-05-28 Alexandre Oliva + * gcc.c-torture/execute/20000528-1.c: New test. + * g++.old-deja/g++.law/refs4.C: Mark as XFAIL. * g++.old-deja/g++.law/temps4.C: Likewise. diff --git a/gcc/testsuite/gcc.c-torture/execute/20000528-1.c b/gcc/testsuite/gcc.c-torture/execute/20000528-1.c new file mode 100644 index 00000000000..20692bf8113 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/execute/20000528-1.c @@ -0,0 +1,13 @@ +/* Copyright (C) 2000 Free Software Foundation */ +/* Contributed by Alexandre Oliva */ + +unsigned long l = (unsigned long)-2; +unsigned short s; + +int main () { + long t = l; + s = t; + if (s != (unsigned short)-2) + abort (); + exit (0); +}