[Lldb-commits] [lldb] [lldb][test] Add test for no_unique_address when mixed with bitfields (PR #108155)

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Wed Sep 11 01:22:47 PDT 2024


https://github.com/labath approved this pull request.

The test will fail on windows because no_unique_address is not a thing there:
```
$ bin/clang++ -c --target=x86_64-pc-windows -gdwarf -o /tmp/a.out /tmp/a.cc
/tmp/a.cc:23:5: warning: unknown attribute 'no_unique_address' ignored [-Wunknown-attributes]
   23 |   [[no_unique_address]] Empty padding;
      |     ^~~~~~~~~~~~~~~~~
```

 I suggest hardcoding the test with your favourite triple.

https://github.com/llvm/llvm-project/pull/108155


More information about the lldb-commits mailing list