2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / gcc.c-torture / compile / 20011217-1.c
blob3e89ca04c192ea3eea9467f177c00af958ee2618
1 /* Test that the initializer of a compound literal is properly walked
2 when tree inlining. */
3 /* Origin: PR c/5105 from <aj@suse.de>. */
5 typedef struct { long p; } pt;
7 inline pt f (pt _p)
9 long p = _p.p;
11 return (pt) { (p) };
14 static int mmap_mem (void)
16 pt p;
17 p = f (p);
19 return 0;