summaryrefslogtreecommitdiff
path: root/support/regression/tests/gcc-torture-execute-980526-3.c
blob: 08db9771d8bf71d349df63e0ebe69cf184589e3e (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
26
27
28
29
30
/*
   980526-3.c from the execute part of the gcc torture suite.
 */

#include <testfwk.h>

#ifdef __SDCC
#pragma std_c99
#endif

int compare(unsigned int x, unsigned int y)
{
   if (x==y)
     return 0;
   else
     return 1;
}
 
void
testTortureExecute (void)
{
 unsigned int i, j, k, l;
 i = 5; j = 2; k=0; l=2;
 if (compare(5%(~(unsigned) 2), i%~j) 
     || compare(0, k%~l))
    ASSERT(0);
 else
    return;
}