blob: bdd3fec4666d00f28ab2b828f267bd66c793ef37 (
plain)
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
32
33
34
35
36
|
/*
pr49281.c from the execute part of the gcc torture tests.
*/
#include <testfwk.h>
#ifdef __SDCC
#pragma std_c99
#endif
/* PR target/49281 */
extern void abort (void);
int
foo (int x)
{
return (x << 2) | 4;
}
int
bar (int x)
{
return (x << 2) | 3;
}
void
testTortureExecute (void)
{
if (foo (43) != 172 || foo (1) != 4 || foo (2) != 12)
ASSERT (0);
if (bar (43) != 175 || bar (1) != 7 || bar (2) != 11)
ASSERT (0);
return;
}
|