aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@cygnus.com>2000-05-28 23:31:55 +0000
committerAlexandre Oliva <aoliva@gcc.gnu.org>2000-05-28 23:31:55 +0000
commitbb078eb403f8be5f3976facaedf1c34e8a0b2f77 (patch)
tree2dbf62be6a06d33233625d4bb00048abd6ef43b5 /gcc
parentd7bfe26780c0e2c385152baff9346b2438b532e7 (diff)
downloadgcc-bb078eb403f8be5f3976facaedf1c34e8a0b2f77.zip
gcc-bb078eb403f8be5f3976facaedf1c34e8a0b2f77.tar.gz
gcc-bb078eb403f8be5f3976facaedf1c34e8a0b2f77.tar.bz2
* gcc.c-torture/execute/20000528-1.c: New test.
From-SVN: r34242
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog2
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/20000528-1.c13
2 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index dfcaf37..f9d89e9 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,5 +1,7 @@
2000-05-28 Alexandre Oliva <aoliva@cygnus.com>
+ * 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 0000000..20692bf
--- /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 <aoliva@cygnus.com> */
+
+unsigned long l = (unsigned long)-2;
+unsigned short s;
+
+int main () {
+ long t = l;
+ s = t;
+ if (s != (unsigned short)-2)
+ abort ();
+ exit (0);
+}