1 // RUN: %clang_cc1 -triple x86_64-linux-pc -DIS64 -fsyntax-only -verify -std=c++17 %s
2 // RUN: %clang_cc1 -triple x86_64-windows-pc -DIS64 -fsyntax-only -verify -std=c++17 %s
3 // RUN: %clang_cc1 -triple i386-linux-pc -fsyntax-only -verify -std=c++17 %s
4 // RUN: %clang_cc1 -triple i386-windows-pc -DW32 -fsyntax-only -verify -std=c++17 %s
5 // expected-no-diagnostics
8 struct A
: virtual Base
{
13 static_assert(__has_unique_object_representations(decltype(p
)));
19 // required on 64 bit to fill out the tail padding.
23 static_assert(__has_unique_object_representations(B
));
25 struct C
{ // has padding on Win32, but nothing else.
29 static_assert(!__has_unique_object_representations(C
));
31 static_assert(__has_unique_object_representations(C
));