diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2008-05-20 07:56:31 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2008-05-20 07:56:31 +0000 |
commit | 07fa52ab33a75d7a5736ea5bd0d4e3134fb10c7e (patch) | |
tree | d3c1acf4fac638108b97f550f0febb830a07cd26 /test/CodeGen/struct-comma.c | |
parent | d8dc2100487640d8f5ce53201fdcfac7b5ca32b2 (diff) |
Implement codegen for comma operator for structs.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51304 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/struct-comma.c')
-rw-r--r-- | test/CodeGen/struct-comma.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/CodeGen/struct-comma.c b/test/CodeGen/struct-comma.c new file mode 100644 index 0000000000..e8070dd178 --- /dev/null +++ b/test/CodeGen/struct-comma.c @@ -0,0 +1,4 @@ +// RUN: clang %s -emit-llvm + +struct S {int a, b;} x; +void a(struct S* b) {*b = (r(), x);} |