aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/const-eval.c
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-01-18 18:49:33 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-01-18 18:49:33 +0000
commite188933adf2cfe2821b8acba2de6d5d152bc246b (patch)
tree13cf107121e12a91f893f300af0d958542cff959 /test/Sema/const-eval.c
parent6eb5be81ca17bc64de0b856fde8f5a9a90757489 (diff)
Properly do a float -> _Complex double conversion, fixes rdar://8875946.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@123759 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/const-eval.c')
-rw-r--r--test/Sema/const-eval.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Sema/const-eval.c b/test/Sema/const-eval.c
index 9f2d32769f..aa0cee5da5 100644
--- a/test/Sema/const-eval.c
+++ b/test/Sema/const-eval.c
@@ -80,3 +80,9 @@ EVAL_EXPR(38, __builtin_expect(1,1) == 1 ? 1 : -1)
// PR7884
EVAL_EXPR(39, __real__(1.f) == 1 ? 1 : -1)
EVAL_EXPR(40, __imag__(1.f) == 0 ? 1 : -1)
+
+// rdar://8875946
+void rdar8875946() {
+ double _Complex P;
+ float _Complex P2 = 3.3f + P;
+}