summary refs log tree commit diff stats
path: root/tests/cpp
diff options
context:
space:
mode:
authorJuan M Gómez <info@jmgomez.me>2024-08-12 17:10:17 +0100
committerGitHub <noreply@github.com>2024-08-12 18:10:17 +0200
commit630c304a2dff6be70717224e533c1ad6f01875e3 (patch)
tree506cb15d13e8b840ea450c2972a9781d8ad36708 /tests/cpp
parent0c890ff9a70258af8231967229b891df9731a5df (diff)
downloadNim-630c304a2dff6be70717224e533c1ad6f01875e3.tar.gz
Adds `SEQ_DECL_SIZE 1` back under `clang` and a test (#23942)
Diffstat (limited to 'tests/cpp')
-rw-r--r--tests/cpp/fam.h4
-rw-r--r--tests/cpp/tfam.nim7
2 files changed, 11 insertions, 0 deletions
diff --git a/tests/cpp/fam.h b/tests/cpp/fam.h
new file mode 100644
index 000000000..ad576425b
--- /dev/null
+++ b/tests/cpp/fam.h
@@ -0,0 +1,4 @@
+struct Test{
+  ~Test() {
+  }
+};
diff --git a/tests/cpp/tfam.nim b/tests/cpp/tfam.nim
new file mode 100644
index 000000000..6bd89fe24
--- /dev/null
+++ b/tests/cpp/tfam.nim
@@ -0,0 +1,7 @@
+discard """
+  targets: "cpp"
+"""
+type 
+  Test {.importcpp, header: "fam.h".} = object
+
+let test = newSeq[Test]()
\ No newline at end of file