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 | a5fd07bbc5e4bae542c06643da3fbfe4967a9379 (patch) | |
tree | 46ef73a108cb6ca81720ea6b74297e272e29261b /test/CodeGen/const-init.c | |
parent | 5de14dc87966ab98730cfacffe0b7d3198a91a62 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63248 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/const-init.c')
-rw-r--r-- | test/CodeGen/const-init.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/CodeGen/const-init.c b/test/CodeGen/const-init.c index bded2e0a3f..3aabcfe608 100644 --- a/test/CodeGen/const-init.c +++ b/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; |