diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2011-02-20 13:06:31 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2011-02-20 13:06:31 +0000 |
commit | bca07a4524feb4edec581062d631a13116320a24 (patch) | |
tree | a9243275843fbeaa590afc07ee888e006b8d54ea /test/Sema/const-eval.c | |
parent | 998bc5802ecdd65ce3b270f6c69a8ae8557f0a10 (diff) |
Notes
Diffstat (limited to 'test/Sema/const-eval.c')
-rw-r--r-- | test/Sema/const-eval.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/Sema/const-eval.c b/test/Sema/const-eval.c index 42097e75f3174..aa0cee5da5b34 100644 --- a/test/Sema/const-eval.c +++ b/test/Sema/const-eval.c @@ -41,7 +41,7 @@ struct s { EVAL_EXPR(19, ((int)&*(char*)10 == 10 ? 1 : -1)); -EVAL_EXPR(20, __builtin_constant_p(*((int*) 10), -1, 1)); +EVAL_EXPR(20, __builtin_constant_p(*((int*) 10))); EVAL_EXPR(21, (__imag__ 2i) == 2 ? 1 : -1); @@ -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; +} |