Skip to content

Commit 7b61973

Browse files
committed
[clang][Interp][test] Try to make a test case work on Windows
1 parent 2ae862b commit 7b61973

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/test/AST/Interp/literals.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1216,7 +1216,7 @@ namespace StmtExprs {
12161216
static_assert(foo() == 76, "");
12171217

12181218
namespace CrossFuncLabelDiff {
1219-
constexpr long a(bool x) { return x ? 0 : (long)&&lbl + (0 && ({lbl: 0;})); }
1219+
constexpr long a(bool x) { return x ? 0 : (intptr_t)&&lbl + (0 && ({lbl: 0;})); }
12201220
}
12211221
}
12221222
#endif

0 commit comments

Comments
 (0)