diff options
-rw-r--r-- | test/std/utilities/meta/meta.unary/meta.unary.prop/has_unique_object_representations.pass.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/std/utilities/meta/meta.unary/meta.unary.prop/has_unique_object_representations.pass.cpp b/test/std/utilities/meta/meta.unary/meta.unary.prop/has_unique_object_representations.pass.cpp index e4a3d203c..52100c304 100644 --- a/test/std/utilities/meta/meta.unary/meta.unary.prop/has_unique_object_representations.pass.cpp +++ b/test/std/utilities/meta/meta.unary/meta.unary.prop/has_unique_object_representations.pass.cpp @@ -55,7 +55,8 @@ class NotEmpty virtual ~NotEmpty(); }; -union Union {}; +union EmptyUnion {}; +struct NonEmptyUnion {int x; unsigned y;}; struct bit_zero { @@ -84,6 +85,7 @@ int main() { test_has_not_has_unique_object_representations<void>(); test_has_not_has_unique_object_representations<Empty>(); + test_has_not_has_unique_object_representations<EmptyUnion>(); test_has_not_has_unique_object_representations<NotEmpty>(); test_has_not_has_unique_object_representations<bit_zero>(); test_has_not_has_unique_object_representations<Abstract>(); @@ -97,7 +99,7 @@ int main() test_has_unique_object_representations<unsigned>(); - test_has_unique_object_representations<Union>(); + test_has_unique_object_representations<NonEmptyUnion>(); test_has_unique_object_representations<char[3]>(); test_has_unique_object_representations<char[]>(); |