mirror of
https://github.com/dart-lang/sdk
synced 2024-10-14 11:53:55 +00:00
Roll Clang from 20d06c833d83 to 28ee6040710f.
Address overflow warnings in ffi test library. TEST=ci Change-Id: I80e54d367532cbc392d6176dae97e9b545968de3 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/286660 Reviewed-by: Daco Harkes <dacoharkes@google.com> Commit-Queue: Ryan Macnak <rmacnak@google.com>
This commit is contained in:
parent
c7569492aa
commit
3633ff4e71
2
DEPS
2
DEPS
|
@ -75,7 +75,7 @@ vars = {
|
|||
# The list of revisions for these tools comes from Fuchsia, here:
|
||||
# https://fuchsia.googlesource.com/integration/+/HEAD/toolchain
|
||||
# If there are problems with the toolchain, contact fuchsia-toolchain@.
|
||||
"clang_version": "git_revision:20d06c833d833ef6b2d0f519cc4a7998d49a2803",
|
||||
"clang_version": "git_revision:28ee6040710fff44ae1349eadabd4cb4a9b1b1b8",
|
||||
"gn_version": "git_revision:0bcd37bd2b83f1a9ee17088037ebdfe6eab6d31a",
|
||||
|
||||
# Update from https://chrome-infra-packages.appspot.com/p/fuchsia/sdk/gn
|
||||
|
|
|
@ -827,15 +827,14 @@ TestIntComputation(int64_t (*fn)(int8_t, int16_t, int32_t, int64_t)) {
|
|||
std::cout << "result " << result << "\n";
|
||||
CHECK_EQ(result, 625);
|
||||
CHECK_EQ(0x7FFFFFFFFFFFFFFFLL, fn(0, 0, 0, 0x7FFFFFFFFFFFFFFFLL));
|
||||
CHECK_EQ(((int64_t)-0x8000000000000000LL),
|
||||
fn(0, 0, 0, -0x8000000000000000LL));
|
||||
CHECK_EQ(((int64_t)0x8000000000000000LL), fn(0, 0, 0, 0x8000000000000000LL));
|
||||
return 0;
|
||||
}
|
||||
|
||||
DART_EXPORT intptr_t
|
||||
TestUintComputation(uint64_t (*fn)(uint8_t, uint16_t, uint32_t, uint64_t)) {
|
||||
CHECK_EQ(0x7FFFFFFFFFFFFFFFLL, fn(0, 0, 0, 0x7FFFFFFFFFFFFFFFLL));
|
||||
CHECK_EQ(-0x8000000000000000LL, fn(0, 0, 0, -0x8000000000000000LL));
|
||||
CHECK_EQ(0x8000000000000000LL, fn(0, 0, 0, 0x8000000000000000LL));
|
||||
CHECK_EQ(-1, (int64_t)fn(0, 0, 0, -1));
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue