summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/complex.c
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-08-23 23:49:47 +0000
committerChris Lattner <sabre@nondot.org>2007-08-23 23:49:47 +0000
commitafd455c0cf36d68a1d8d19450bf85fb0ff67eb47 (patch)
treea4cbb6f5b5545696d0d75b24c2d7bb664f9b5b39 /clang/test/CodeGen/complex.c
parent0b984995b736f022eb429cf6c475315778c4acc8 (diff)
downloadbcm5719-llvm-afd455c0cf36d68a1d8d19450bf85fb0ff67eb47.tar.gz
bcm5719-llvm-afd455c0cf36d68a1d8d19450bf85fb0ff67eb47.zip
make this harder
llvm-svn: 41346
Diffstat (limited to 'clang/test/CodeGen/complex.c')
-rw-r--r--clang/test/CodeGen/complex.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/CodeGen/complex.c b/clang/test/CodeGen/complex.c
index 6c081dbd345..3b5437c184a 100644
--- a/clang/test/CodeGen/complex.c
+++ b/clang/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;
+}
OpenPOWER on IntegriCloud