[all-commits] [llvm/llvm-project] f039a2: [test] Fix aggregate initialization incompatible w...

Jordan Rupprecht via All-commits all-commits at lists.llvm.org
Wed Nov 30 12:48:56 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f039a2cf107a143ea2c0cf3f2a88ec2400421287
      https://github.com/llvm/llvm-project/commit/f039a2cf107a143ea2c0cf3f2a88ec2400421287
  Author: Samira Bazuzi <bazuzi at google.com>
  Date:   2022-11-30 (Wed, 30 Nov 2022)

  Changed paths:
    M llvm/unittests/Support/HashBuilderTest.cpp

  Log Message:
  -----------
  [test] Fix aggregate initialization incompatible with c++20

In C++20, types that declare or delete any constructors are no longer aggregates, breaking compilation of many existing uses of aggregate initialization. In this test, provide a one-arg constructor so that `StructWithoutCopyOrMove{1}` still works.




More information about the All-commits mailing list