summary refs log tree commit diff stats
path: root/tests/cpp/t12946.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cpp/t12946.nim')
-rw-r--r--tests/cpp/t12946.nim8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/cpp/t12946.nim b/tests/cpp/t12946.nim
new file mode 100644
index 000000000..79cd56251
--- /dev/null
+++ b/tests/cpp/t12946.nim
@@ -0,0 +1,8 @@
+discard """
+  targets: "c cpp"
+"""
+
+import std/atomics
+type Futex = distinct Atomic[int32]
+
+var x: Futex