diff options
| author | Chris Lattner <sabre@nondot.org> | 2008-04-04 16:54:41 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2008-04-04 16:54:41 +0000 |
| commit | f3bc75afcfb2bf799776b0f765e145e8cc72d351 (patch) | |
| tree | db6a8dad9a8efb4e4d68a161962442a1a08305e9 /clang/test/CodeGen | |
| parent | 50ad37b6d95cf680aa482cd14419dbb393b69c92 (diff) | |
| download | bcm5719-llvm-f3bc75afcfb2bf799776b0f765e145e8cc72d351.tar.gz bcm5719-llvm-f3bc75afcfb2bf799776b0f765e145e8cc72d351.zip | |
Since isComplexType() no longer returns true for _Complex integers, the code
generator needs to call isAnyComplexType(). This fixes PR1960.
llvm-svn: 49220
Diffstat (limited to 'clang/test/CodeGen')
| -rw-r--r-- | clang/test/CodeGen/complex.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/clang/test/CodeGen/complex.c b/clang/test/CodeGen/complex.c index 0cc002bc6d6..93e25cf459c 100644 --- a/clang/test/CodeGen/complex.c +++ b/clang/test/CodeGen/complex.c @@ -1,4 +1,4 @@ -// RUN: clang -emit-llvm %s +// RUN: clang -emit-llvm < %s int main(void) { @@ -46,3 +46,8 @@ void t2() { (__imag__ cf) = 4.0; } +// PR1960 +void t3() { + __complex__ long long v = 2; +} + |

