Skip to content

Commit

Permalink
Add alignas specifier to buffer in explicit alignment test. (#216)
Browse files Browse the repository at this point in the history
Also update workflow to emit test logs on failure.
  • Loading branch information
reventlov authored Dec 19, 2024
1 parent bb45c18 commit 615a955
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/verify-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
disk-cache: "verify-pr:run-bazel-tests:${{ matrix.cpp-compiler }}"
repository-cache: true
- run: echo "CC=${{ matrix.cpp-compiler }}" >> $GITHUB_ENV
- run: bazel test ${{ matrix.options }} ...
- run: bazel test --test_output=errors ${{ matrix.options }} ...
check-formatting:
name: "Check Python formatting"
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion compiler/back_end/cpp/testcode/auto_array_size_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ TEST(AutoSizeView, CanCopyFrom) {
auto source = MakeAlignedAutoSizeView<const ::std::uint8_t, 8>(
kAutoSize, sizeof kAutoSize);

::std::array</**/ ::std::uint8_t, sizeof kAutoSize> buf = {0};
alignas(8) ::std::array</**/ ::std::uint8_t, sizeof kAutoSize> buf = {0};
auto dest =
MakeAlignedAutoSizeView</**/ ::std::uint8_t, 8>(buf.data(), buf.size());

Expand Down

0 comments on commit 615a955

Please sign in to comment.