diff options
author | Bung <crc32@qq.com> | 2022-12-23 16:47:01 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-23 09:47:01 +0100 |
commit | 13251c2ac9c7e76fb506eeb686a5e5d19d67d0de (patch) | |
tree | 637edb1646cb9c334bd9f937d4dba6623ce4275d /tests | |
parent | 3bba2b34fd632a4c01a6eb0e6f13d4e3a20bf104 (diff) | |
download | Nim-13251c2ac9c7e76fb506eeb686a5e5d19d67d0de.tar.gz |
fix #12946 Bad C++ codegen on distinct generics C++ types (#21157)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/cpp/t12946.nim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/cpp/t12946.nim b/tests/cpp/t12946.nim new file mode 100644 index 000000000..cf6bf5cfc --- /dev/null +++ b/tests/cpp/t12946.nim @@ -0,0 +1,4 @@ +import std/atomics +type Futex = distinct Atomic[int32] + +var x: Futex |