summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/20000528-1.c
blob: 20692bf8113584e7a712a0cbc7386d6ffbe259ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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);
}