diff options
| author | Chris Lattner <sabre@nondot.org> | 2008-07-25 23:52:49 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2008-07-25 23:52:49 +0000 |
| commit | 0d70761cad1be33eff428ff510035111eb6aaea1 (patch) | |
| tree | 7fa2c003afbcb8dbcbd057453321d99f2de85384 /clang/test/Sema/complex-int.c | |
| parent | 8c217a81ac3419f44eea08536a51eb819fc329bf (diff) | |
| download | bcm5719-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.c | 9 |
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; +} + |

