blob: c2c3975e08419f2222d712c92f6a3b460f6ce1ca (
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
32
|
/*
20140828-1.c from the execute part of the gcc torture suite.
*/
#include <testfwk.h>
#ifdef __SDCC
#pragma std_c99
#endif
short *f(short *a, int b, int *d);
short *f(short *a, int b, int *d)
{
short c = *a;
a++;
c = b << c;
*d = c;
return a;
}
void
testTortureExecute (void)
{
int d;
short a[2];
a[0] = 0;
if (f(a, 1, &d) != &a[1])
ASSERT (0);
if (d != 1)
ASSERT (0);
}
|