Fix invalid evaluation of _Complex float (real & imaginary parts had
mismatched semantics).
- Enforce this in APValue.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62924 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Sema/const-eval.c b/test/Sema/const-eval.c
index e3d63ca..71f7622 100644
--- a/test/Sema/const-eval.c
+++ b/test/Sema/const-eval.c
@@ -26,3 +26,6 @@
int a;
EVAL_EXPR(15, (_Bool)&a); // expected-error {{fields must have a constant size}}
}
+
+// FIXME: Turn into EVAL_EXPR test once we have more folding.
+_Complex float g16 = (1.0f + 1.0fi);