blob: f6902e898c1da152b1cce7c43bd79c6d1389820d (
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
37
38
39
40
41
42
43
44
45
|
/*
920908-1.c from the execute part of the gcc torture suite.
*/
#include <testfwk.h>
#ifdef __SDCC
#pragma std_c99
#endif
// TODO: Enable when sdcc supports returning struct!
#if 0
/* REPRODUCED:RUN:SIGNAL MACHINE:mips OPTIONS: */
#include <stdarg.h>
typedef struct{int A;}T;
T f(int x,...)
{
va_list ap;
T X;
va_start(ap,x);
X=va_arg(ap,T);
if(X.A!=10)abort();
X=va_arg(ap,T);
if(X.A!=20)abort();
va_end(ap);
return X;
}
#endif
void
testTortureExecute (void)
{
#if 0
T X,Y;
int i;
X.A=10;
Y.A=20;
f(2,X,Y);
return;
#endif
}
|