From fd90ac054e9703b0a8f39da388e28f2b70d08dcc Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 23 Aug 2007 23:49:47 +0000 Subject: [PATCH] make this harder git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41346 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/complex.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/CodeGen/complex.c b/test/CodeGen/complex.c index 6c081dbd34..3b5437c184 100644 --- a/test/CodeGen/complex.c +++ b/test/CodeGen/complex.c @@ -10,10 +10,20 @@ int main(void) _Complex double bar(int); void test(_Complex double*); +void takecomplex(_Complex double); void test2(int c) { _Complex double X; X = bar(1); test(&X); + takecomplex(X); } +_Complex double g1, g2; + +void test3() { + g1 = g1 + g2; + g1 = g1 - g2; + g1 = g1 * g2; + g1 = +-~g1; +} -- 2.50.1