aboutsummaryrefslogtreecommitdiff
path: root/test/enum.c
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2024-03-29 14:04:09 -0700
committerMichael Forney <mforney@mforney.org>2024-03-29 14:04:09 -0700
commit8120240c1f17cf536228b79144d41168a48a4fcc (patch)
tree5328a851b87caea163ca7b9fcb185f05a32082aa /test/enum.c
parent2e5ef23826b14a195a0095045403ce2ea8877e64 (diff)
Use C23 keywords in test data
Diffstat (limited to 'test/enum.c')
-rw-r--r--test/enum.c20
1 files changed, 10 insertions, 10 deletions
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));