blob: 5ce94da81abd2b6649c4775e302321e50df9e62b (
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
31
|
/*
pr207187-1.c from the execute part of the gcc torture tests.
*/
#include <testfwk.h>
#ifdef __SDCC
#pragma std_c99
#endif
// Some ports do not support long long yet.
#if !defined(__SDCC_pic14) && !defined(__SDCC_pic16)
int a = 0x101;
int b = 0x100;
int
foo (void)
{
return (((unsigned char) (unsigned long long) ((a ? a : 1) & (a * b)))
? 0 : 1);
}
#endif
void
testTortureExecute (void)
{
#if !defined(__SDCC_pic14) && !defined(__SDCC_pic16)
ASSERT (!(1 - foo ()));
#endif
}
|