diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-03-31 19:01:39 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-03-31 19:01:39 +0000 |
commit | 35579146aae9d8976cf5bcafc454052f09bc7355 (patch) | |
tree | 19654bea242c216b6a188b921f1225ca5037136d /clang/test/CodeGen/x86_32-arguments.c | |
parent | 7b4df3c3e6a0fc20d5784324aae026f9ad215c49 (diff) | |
download | bcm5719-llvm-35579146aae9d8976cf5bcafc454052f09bc7355.tar.gz bcm5719-llvm-35579146aae9d8976cf5bcafc454052f09bc7355.zip |
x86_32 Darwin ABI: Treat empty unions like empty structures.
- Current return-arguments-32 status: 15/1000 failures
llvm-svn: 68132
Diffstat (limited to 'clang/test/CodeGen/x86_32-arguments.c')
-rw-r--r-- | clang/test/CodeGen/x86_32-arguments.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/clang/test/CodeGen/x86_32-arguments.c b/clang/test/CodeGen/x86_32-arguments.c index 632949e7631..93348951862 100644 --- a/clang/test/CodeGen/x86_32-arguments.c +++ b/clang/test/CodeGen/x86_32-arguments.c @@ -15,8 +15,6 @@ // tests. This should be the same as @f8_2. // RUN: grep 'define void @f9_2(%.truct.s9\* byval %a0)' %t && -// RUN: true - char f0(void) { } @@ -65,3 +63,13 @@ struct s9 f9_1(void) { void f9_2(struct s9 a0) { } +// Return of small structures and unions... + +// RUN: grep 'float @f10()' %t && +struct s10 { + union { }; + float f; +} f10(void) {} + +// RUN: true + |