From: Chris Lattner Date: Thu, 23 Aug 2007 23:49:47 +0000 (+0000) Subject: make this harder X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fd90ac054e9703b0a8f39da388e28f2b70d08dcc;p=clang make this harder git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41346 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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; +}