blob: 819237ce53bef4f0387c4de8b1aa7b1b27a6cd6d [file] [log] [blame]
Eric Christopher3883e662011-07-26 22:17:02 +00001// Test returning a single element aggregate value containing a double.
2// RUN: %clang_cc1 %s -emit-llvm -o -
3
4struct X {
5 double D;
6};
7
8struct Y {
9 struct X x;
10};
11
12struct Y bar();
13
14void foo(struct Y *P) {
15 *P = bar();
16}
17
18struct Y bar() {
19 struct Y a;
20 a.x.D = 0;
21 return a;
22}
23