diff options
author | Chris Lattner <sabre@nondot.org> | 2008-02-16 23:55:16 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-02-16 23:55:16 +0000 |
commit | df53e20f2dee4b3b89abe0a9f30ff8758de62ea4 (patch) | |
tree | d98820f978e45e4ac399d2be18191b70b7743e9b /clang/test/CodeGen/compound.c | |
parent | 231fe4746b7931dda9e739bea6f9b8fa1d7d8e4e (diff) | |
download | bcm5719-llvm-df53e20f2dee4b3b89abe0a9f30ff8758de62ea4.tar.gz bcm5719-llvm-df53e20f2dee4b3b89abe0a9f30ff8758de62ea4.zip |
implement codegen support for aggregates casted to void.
llvm-svn: 47226
Diffstat (limited to 'clang/test/CodeGen/compound.c')
-rw-r--r-- | clang/test/CodeGen/compound.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/clang/test/CodeGen/compound.c b/clang/test/CodeGen/compound.c index 09095656316..c8afceef760 100644 --- a/clang/test/CodeGen/compound.c +++ b/clang/test/CodeGen/compound.c @@ -1,4 +1,4 @@ -// RUN: clang %s -emit-llvm +// RUN: clang < %s -emit-llvm int A; long long B; int C; @@ -18,3 +18,8 @@ void foo(char *strbuf) { int stufflen = 4; strbuf += stufflen; } + + +// Aggregate cast to void +union uu { int a;}; void f(union uu p) { (void) p;} + |