diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2009-01-28 22:24:07 +0000 |
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2009-01-28 22:24:07 +0000 |
| commit | f50e60b23a6178bb79ab3faa2e7992b29b1026c6 (patch) | |
| tree | ec5ed6150dab8878fd22d0261c863ad5622fecc7 /clang/test/CodeGen/const-init.c | |
| parent | 42b63bc175831ed75143c593b40ded58f4446309 (diff) | |
| download | bcm5719-llvm-f50e60b23a6178bb79ab3faa2e7992b29b1026c6.tar.gz bcm5719-llvm-f50e60b23a6178bb79ab3faa2e7992b29b1026c6.zip | |
Implement basic _Complex integer constant folding.
- Merged into single ComplexEvaluator, these share too much logic to
be worth splitting for float/int (IMHO). Will split on request.
llvm-svn: 63248
Diffstat (limited to 'clang/test/CodeGen/const-init.c')
| -rw-r--r-- | clang/test/CodeGen/const-init.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/CodeGen/const-init.c b/clang/test/CodeGen/const-init.c index bded2e0a3f6..3aabcfe6089 100644 --- a/clang/test/CodeGen/const-init.c +++ b/clang/test/CodeGen/const-init.c @@ -21,3 +21,6 @@ union s2 { }; int g0 = (int)(&(((union s2 *) 0)->f0.f0) - 0); + +_Complex int g1 = 1 + 10i; +_Complex double g2 = 1.0 + 10.0i; |

