summaryrefslogtreecommitdiffstats
path: root/clang/test/AST/Interp/complex.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/AST/Interp/complex.c')
-rw-r--r--clang/test/AST/Interp/complex.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/AST/Interp/complex.c b/clang/test/AST/Interp/complex.c
index c9c2efb59745..b5f30b87baa7 100644
--- a/clang/test/AST/Interp/complex.c
+++ b/clang/test/AST/Interp/complex.c
@@ -14,3 +14,8 @@ void blah() {
_Static_assert((0.0 + 0.0j) == (0.0 + 0.0j), "");
_Static_assert((0.0 + 0.0j) != (0.0 + 0.0j), ""); // both-error {{static assertion}} \
// both-note {{evaluates to}}
+
+const _Complex float FC = {0.0f, 0.0f};
+_Static_assert(!FC, "");
+const _Complex float FI = {0, 0};
+_Static_assert(!FI, "");