We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ba7a87 commit 0e461d1Copy full SHA for 0e461d1
clang/test/AST/ByteCode/intap.cpp
@@ -48,11 +48,12 @@ static_assert(DivA / DivB == 2, "");
48
constexpr _BitInt(4) DivC = DivA / 0; // both-error {{must be initialized by a constant expression}} \
49
// both-note {{division by zero}}
50
51
+#ifdef __SIZEOF_INT128__
52
constexpr __int128 isMinDiv() {
53
return __int128{0} / __int128{-1};
54
}
55
static_assert(isMinDiv() == 0, "");
-
56
+#endif
57
58
59
constexpr _BitInt(7) RemA = 47;
0 commit comments