Skip to content

Commit

Permalink
Specify alignment.
Browse files Browse the repository at this point in the history
  • Loading branch information
reventlov committed Dec 19, 2024
1 parent 9395295 commit 5ae63aa
Showing 1 changed file with 1 addition and 1 deletion.
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 5ae63aa

Please sign in to comment.