Added support for _Static_assert in unions.
This commit is contained in:
@@ -65,6 +65,13 @@ struct S {
|
||||
int b;
|
||||
};
|
||||
|
||||
/* _Static_assert can also appear in unions. */
|
||||
union U {
|
||||
int a;
|
||||
_Static_assert (1, "1 should still be true.");
|
||||
int b;
|
||||
};
|
||||
|
||||
|
||||
int main (void)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user