mirror of
https://github.com/boostorg/config.git
synced 2026-05-03 19:40:47 +02:00
Add BOOST_ATTRIBUTE_NO_UNIQUE_ADDRESS.
See https://github.com/boostorg/config/issues/257.
This commit is contained in:
@@ -42,6 +42,13 @@ struct BOOST_ATTRIBUTE_NODISCARD nodiscard_struct {};
|
||||
|
||||
#define test_fallthrough(x) foobar(x)
|
||||
|
||||
struct empty {};
|
||||
struct no_unique
|
||||
{
|
||||
int a;
|
||||
BOOST_ATTRIBUTE_NO_UNIQUE_ADDRESS empty b;
|
||||
};
|
||||
|
||||
|
||||
int main()
|
||||
{
|
||||
@@ -56,6 +63,7 @@ int main()
|
||||
if(BOOST_UNLIKELY(!result))
|
||||
always_throw();
|
||||
nodiscard_struct s;
|
||||
no_unique no_un;
|
||||
}
|
||||
catch(int)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user