/* 20140828-1.c from the execute part of the gcc torture suite. */ #include #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); }