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