blob: 50626e548c6166701cd1eccf772c483b818f6538 [file] [log] [blame]
Chris Lattnerb1ab71d2007-09-27 15:47:16 +00001// RUN: %llvmgcc -S %s -o -
2// PR1708
Matthijs Kooijmanb7e103b2008-06-10 14:37:44 +00003
4#include <stdlib.h>
5
Chris Lattnerb1ab71d2007-09-27 15:47:16 +00006struct s { _Complex unsigned short x; };
7struct s gs = { 100 + 200i };
8struct s __attribute__((noinline)) foo (void) { return gs; }
9
10int main ()
11{
12 if (foo ().x != gs.x)
13 abort ();
14 exit (0);
15}
16
17