/* 931005-1.c from the execute part of the gcc torture suite. */ #include #ifdef __SDCC #pragma std_c99 #endif // TODO: Enable when sdcc supports struct return! #if 0 typedef struct { char x; } T; T f (s1) T s1; { T s1a; s1a.x = s1.x; return s1a; } #endif void testTortureExecute (void) { #if 0 T s1a, s1b; s1a.x = 100; s1b = f (s1a); if (s1b.x != 100) ASSERT (0); return; #endif }