blob: ee9a85c2454d1a273f2fc460ada2b94ffccf1a5e [file] [log] [blame]
Chris Lattnerb1ab71d2007-09-27 15:47:16 +00001// RUN: %llvmgcc -S %s -o -
2// PR1708
3struct s { _Complex unsigned short x; };
4struct s gs = { 100 + 200i };
5struct s __attribute__((noinline)) foo (void) { return gs; }
6
7int main ()
8{
9 if (foo ().x != gs.x)
10 abort ();
11 exit (0);
12}
13
14