* gcc.c-torture/execute/20000528-1.c: New test.
authorAlexandre Oliva <aoliva@cygnus.com>
Sun, 28 May 2000 23:31:55 +0000 (23:31 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Sun, 28 May 2000 23:31:55 +0000 (23:31 +0000)
From-SVN: r34242

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/20000528-1.c [new file with mode: 0644]

index dfcaf37..f9d89e9 100644 (file)
@@ -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 (file)
index 0000000..20692bf
--- /dev/null
@@ -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);
+}