Skip to content

Commit 0c02644

Browse files
tbaederryuxuanchen1997
authored andcommitted
[clang][Interp][test] Try to make a test case work on Windows
Summary: Test Plan: Reviewers: Subscribers: Tasks: Tags: Differential Revision: https://phabricator.intern.facebook.com/D60250664
1 parent 0f424c5 commit 0c02644

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)