summary refs log tree commit diff stats
path: root/tests/enum
diff options
context:
space:
mode:
authorcooldome <ariabushenko@gmail.com>2020-10-27 23:09:26 +0000
committerGitHub <noreply@github.com>2020-10-28 00:09:26 +0100
commitf8cac6bbbcfa8ddc649160945a17a6f5b7a4d9d6 (patch)
treebaaa743daba3e243d7c42fe8542e0336cfeb62a2 /tests/enum
parent0fb878324eeb39a4707be5ab0fd6ad8412950b78 (diff)
downloadNim-f8cac6bbbcfa8ddc649160945a17a6f5b7a4d9d6.tar.gz
fix #15752 (#15754)
Diffstat (limited to 'tests/enum')
-rw-r--r--tests/enum/tenum.nim9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/enum/tenum.nim b/tests/enum/tenum.nim
index 8cc578d3c..aa338ee2c 100644
--- a/tests/enum/tenum.nim
+++ b/tests/enum/tenum.nim
@@ -154,3 +154,12 @@ block nonzero: # bug #6959
     B
     C
   let slice = SomeEnum.low..SomeEnum.high
+
+block size_one_byte: #issue 15752
+  type
+    Flag = enum
+      Disabled = 0x00
+      Enabled = 0xFF
+
+  static:
+    assert 1 == sizeof(Flag)
\ No newline at end of file