1 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -fsyntax-only -verify -std=c++2a %s
2 // expected-no-diagnostics
7 [[no_unique_address
]] Empty e
;
11 static_assert(__has_unique_object_representations(A
));
15 [[no_unique_address
]] Empty e
;
18 static_assert(__has_unique_object_representations(B
));
22 [[no_unique_address
]] Empty e1
;
23 [[no_unique_address
]] Empty e2
;
26 static_assert(!__has_unique_object_representations(C
));
28 namespace TailPaddingReuse
{
38 [[no_unique_address
]] A a
;
41 } // namespace TailPaddingReuse
42 static_assert(__has_unique_object_representations(TailPaddingReuse::B
));