mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 19:31:58 +00:00
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28396 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bc2eba1ca2
commit
82743daacf
23
test/CFrontend/2006-05-19-SingleEltReturn.c
Normal file
23
test/CFrontend/2006-05-19-SingleEltReturn.c
Normal file
@ -0,0 +1,23 @@
|
||||
// Test returning a single element aggregate value containing a double.
|
||||
// RUN: %llvmgcc %s -S -o -
|
||||
|
||||
struct X {
|
||||
double D;
|
||||
};
|
||||
|
||||
struct Y {
|
||||
struct X x;
|
||||
};
|
||||
|
||||
struct Y bar();
|
||||
|
||||
void foo(struct Y *P) {
|
||||
*P = bar();
|
||||
}
|
||||
|
||||
struct Y bar() {
|
||||
struct Y a;
|
||||
a.x.D = 0;
|
||||
return a;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user