aboutsummaryrefslogtreecommitdiffhomepage
path: root/test.c
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2023-06-04 21:15:58 +0200
committerlemon <lsof@mailbox.org>2023-06-04 21:15:58 +0200
commita6ccb15003ae0346b4437f6d81e2d9db44054af7 (patch)
tree75c14eb5955c60d1c0cc301e463093f904c7d897 /test.c
parent92c125047769d66c71ba6874cc670c45595bc393 (diff)
better enums
Diffstat (limited to 'test.c')
-rw-r--r--test.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/test.c b/test.c
index a86f2d2..d59088a 100644
--- a/test.c
+++ b/test.c
@@ -72,11 +72,15 @@ void fill(char *p, int c, unsigned long n)
void zero(void *p, unsigned long n) { fill(p,0,n); }
enum ball {
+ neg = -1,
Zero,
Two = 2,
Three,
One = Zero + 1,
- W = 1l<<44
+ X = 2147483647,
+ Y,
+ Z,
+ W = ~0ul
};
main(t) {