summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/complex-int.c
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-07-25 23:52:49 +0000
committerChris Lattner <sabre@nondot.org>2008-07-25 23:52:49 +0000
commit0d70761cad1be33eff428ff510035111eb6aaea1 (patch)
tree7fa2c003afbcb8dbcbd057453321d99f2de85384 /clang/test/Sema/complex-int.c
parent8c217a81ac3419f44eea08536a51eb819fc329bf (diff)
downloadbcm5719-llvm-0d70761cad1be33eff428ff510035111eb6aaea1.tar.gz
bcm5719-llvm-0d70761cad1be33eff428ff510035111eb6aaea1.zip
GCC supports the complex conjugate operator (an extension) on complex int
as well as complex float. rdar://6097730 llvm-svn: 54080
Diffstat (limited to 'clang/test/Sema/complex-int.c')
-rw-r--r--clang/test/Sema/complex-int.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/Sema/complex-int.c b/clang/test/Sema/complex-int.c
index d7244d113bb..1e58b5320cb 100644
--- a/clang/test/Sema/complex-int.c
+++ b/clang/test/Sema/complex-int.c
@@ -41,3 +41,12 @@ TestPairs(5); TestPairs(6);
TestPairs(7); TestPairs(8);
}
+// rdar://6097730
+void test3(_Complex int *x) {
+ *x = ~*x;
+}
+
+void test4(_Complex float *x) {
+ *x = ~*x;
+}
+
OpenPOWER on IntegriCloud