1 /* These are random tests that I used when working on the GCC frontend
4 // test floating point comparison!
5 int floatcomptest(double *X, double *Y, float *x, float *y) {
6 return *X < *Y || *x < *y;
9 extern void *malloc(unsigned);
12 void *memset_impl(void *dstpp, int c, unsigned len) {
13 long long int dstp = (long long int) dstpp;
17 ((unsigned char *) dstp)[0] = c;
24 // TEST problem with signed/unsigned versions of the same constants being shared
29 static char *localmalloc(int size) {
34 temp = (char *) malloc(32768);
41 typedef struct { double X; double Y; int Z; } PBVTest;
43 PBVTest testRetStruct(float X, double Y, int Z) {
44 PBVTest T = { X, Y, Z };
47 PBVTest testRetStruct2(void); // external func no inlining
50 double CallRetStruct(float X, double Y, int Z) {
51 PBVTest T = testRetStruct2();