Skip to content

Commit 935f7d6

Browse files
committed
[clang][Interp][NFC] We do support complex bitint now
Remove a stale FIXME comment and improve the test.
1 parent b081e9d commit 935f7d6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

clang/test/AST/Interp/complex.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,9 @@ constexpr _Complex int I3 = {15};
9898
static_assert(__real(I3) == 15, "");
9999
static_assert(__imag(I3) == 0, "");
100100

101-
/// FIXME: This should work in the new interpreter as well.
102-
// constexpr _Complex _BitInt(8) A = 0;// = {4};
101+
constexpr _Complex _BitInt(8) A = {4};
102+
static_assert(__real(A) == 4, "");
103+
static_assert(__imag(A) == 0, "");
103104

104105

105106
constexpr _Complex double Doubles[4] = {{1.0, 2.0}};

0 commit comments

Comments
 (0)