Skip to content

Commit 615a955

Browse files
authored
Add alignas specifier to buffer in explicit alignment test. (#216)
Also update workflow to emit test logs on failure.
1 parent bb45c18 commit 615a955

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/verify-pull-request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
disk-cache: "verify-pr:run-bazel-tests:${{ matrix.cpp-compiler }}"
1818
repository-cache: true
1919
- run: echo "CC=${{ matrix.cpp-compiler }}" >> $GITHUB_ENV
20-
- run: bazel test ${{ matrix.options }} ...
20+
- run: bazel test --test_output=errors ${{ matrix.options }} ...
2121
check-formatting:
2222
name: "Check Python formatting"
2323
runs-on: ubuntu-latest

compiler/back_end/cpp/testcode/auto_array_size_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ TEST(AutoSizeView, CanCopyFrom) {
306306
auto source = MakeAlignedAutoSizeView<const ::std::uint8_t, 8>(
307307
kAutoSize, sizeof kAutoSize);
308308

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

0 commit comments

Comments
 (0)