2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 20030811-1.c
blob2ac59c03af270a0ee7f28108915e2c8c8db14b2f
1 /* Origin: PR target/11535 from H. J. Lu <hjl@lucon.org> */
3 void vararg (int i, ...)
5 (void) i;
8 int i0[0], i1;
10 void test1 (void)
12 int a = (int) (long long) __builtin_return_address (0);
13 vararg (0, a);
16 void test2 (void)
18 i0[0] = (int) (long long) __builtin_return_address (0);
21 void test3 (void)
23 i1 = (int) (long long) __builtin_return_address (0);
26 void test4 (void)
28 volatile long long a = (long long) __builtin_return_address (0);
29 i0[0] = (int) a;
32 int main (void)
34 return 0;