From 07fa52ab33a75d7a5736ea5bd0d4e3134fb10c7e Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Tue, 20 May 2008 07:56:31 +0000 Subject: Implement codegen for comma operator for structs. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51304 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/struct-comma.c | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 test/CodeGen/struct-comma.c (limited to 'test/CodeGen/struct-comma.c') 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);} -- cgit v1.2.3-70-g09d2