commit | 91fc7808c9d3baa0258b353ffb1d74938ecbc4ab | [log] [tgz] |
---|---|---|
author | Eli Friedman <eli.friedman@gmail.com> | Tue May 20 07:56:31 2008 +0000 |
committer | Eli Friedman <eli.friedman@gmail.com> | Tue May 20 07:56:31 2008 +0000 |
tree | d3c1acf4fac638108b97f550f0febb830a07cd26 | |
parent | b9ea6bc290c12da35b0fddd1926e6fb5aed3e82a [diff] [blame] |
Implement codegen for comma operator for structs. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51304 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGen/struct-comma.c b/test/CodeGen/struct-comma.c new file mode 100644 index 0000000..e8070dd --- /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);}