From 8120240c1f17cf536228b79144d41168a48a4fcc Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Fri, 29 Mar 2024 14:04:09 -0700 Subject: Use C23 keywords in test data --- test/enum.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'test/enum.c') diff --git a/test/enum.c b/test/enum.c index 20ea64d..7564f93 100644 --- a/test/enum.c +++ b/test/enum.c @@ -4,11 +4,11 @@ enum E1 { A1type = __builtin_types_compatible_p(typeof(A1), int), B1type = __builtin_types_compatible_p(typeof(B1), int), }; -_Static_assert(__builtin_types_compatible_p(typeof(A1), int)); -_Static_assert(A1type == 1); -_Static_assert(__builtin_types_compatible_p(typeof(B1), int)); -_Static_assert(B1type == 1); -_Static_assert(__builtin_types_compatible_p(enum E1, int)); +static_assert(__builtin_types_compatible_p(typeof(A1), int)); +static_assert(A1type == 1); +static_assert(__builtin_types_compatible_p(typeof(B1), int)); +static_assert(B1type == 1); +static_assert(__builtin_types_compatible_p(enum E1, int)); enum E2 { A2 = 1, @@ -16,8 +16,8 @@ enum E2 { A2type = __builtin_types_compatible_p(typeof(A2), int), B2type = __builtin_types_compatible_p(typeof(B2), int), }; -_Static_assert(__builtin_types_compatible_p(typeof(A2), int)); -_Static_assert(A2type == 1); -_Static_assert(__builtin_types_compatible_p(typeof(B2), int)); -_Static_assert(B2type == 1); -_Static_assert(__builtin_types_compatible_p(enum E2, unsigned)); +static_assert(__builtin_types_compatible_p(typeof(A2), int)); +static_assert(A2type == 1); +static_assert(__builtin_types_compatible_p(typeof(B2), int)); +static_assert(B2type == 1); +static_assert(__builtin_types_compatible_p(enum E2, unsigned)); -- cgit v1.2.3