* gcc.c-torture/execute/20000528-1.c: New test.

From-SVN: r34242
This commit is contained in:
Alexandre Oliva 2000-05-28 23:31:55 +00:00 committed by Alexandre Oliva
parent d7bfe26780
commit bb078eb403
2 changed files with 15 additions and 0 deletions

View File

@ -1,5 +1,7 @@
2000-05-28 Alexandre Oliva <aoliva@cygnus.com> 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/refs4.C: Mark as XFAIL.
* g++.old-deja/g++.law/temps4.C: Likewise. * g++.old-deja/g++.law/temps4.C: Likewise.

View File

@ -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);
}