summaryrefslogtreecommitdiff
path: root/support/regression/tests/gcc-torture-execute-20030316-1.c
blob: 3bb39011c7a10a5a594d53e4e94f6ec86974c68b (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
/*
   20030316-1.c from the execute part of the gcc torture tests.
 */

#include <testfwk.h>

#ifdef __SDCC
#pragma std_c99
#endif

/* PR target/9164 */
/* The comparison operand was sign extended erraneously.  */

void
testTortureExecute (void)
{
    long j = 0x40000000;
    if ((unsigned int) (0x40000000 + j) < 0L)
 	ASSERT (0);

    return;
}