summaryrefslogtreecommitdiff
path: root/support/regression/tests/gcc-torture-execute-20000528-1.c
blob: c3c055a8c42a91dd90e5089df1d41c0d06f51a82 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*
   20000528-1.c from the execute part of the gcc torture tests.
 */

#include <testfwk.h>

#ifdef __SDCC
#pragma std_c99
#endif

/* Copyright (C) 2000  Free Software Foundation  */
/* Contributed by Alexandre Oliva <aoliva@cygnus.com> */

unsigned long l = (unsigned long)-2;
unsigned short s;

void
testTortureExecute (void) {
  long t = l;
  s = t;
  if (s != (unsigned short)-2)
    ASSERT (0);
  return;
}