summary refs log tree commit diff stats
path: root/tests/ccgbugs
diff options
context:
space:
mode:
authorheterodoxic <122719743+heterodoxic@users.noreply.github.com>2023-06-01 19:37:01 +0200
committerGitHub <noreply@github.com>2023-06-01 19:37:01 +0200
commitc507ced51e19f530f39ee059e0c272638229a7b1 (patch)
tree7aa93d72a2149ba4fa3622c7e78b8e1a6b105e8d /tests/ccgbugs
parent8e35b3d577cb0a6b216b16668ff5f34a86cfbbab (diff)
downloadNim-c507ced51e19f530f39ee059e0c272638229a7b1.tar.gz
partially fixes #20787 by having a char dummy member prepended to objs only containing an UncheckedArray (i.e. C FAM) (#21979)
partial fix for #20787
Diffstat (limited to 'tests/ccgbugs')
-rw-r--r--tests/ccgbugs/t20787.nim4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/ccgbugs/t20787.nim b/tests/ccgbugs/t20787.nim
new file mode 100644
index 000000000..c2d848c2c
--- /dev/null
+++ b/tests/ccgbugs/t20787.nim
@@ -0,0 +1,4 @@
+type
+  Obj = object
+    f: UncheckedArray[byte]
+let o = new Obj
\ No newline at end of file