From 630c304a2dff6be70717224e533c1ad6f01875e3 Mon Sep 17 00:00:00 2001 From: Juan M Gómez Date: Mon, 12 Aug 2024 17:10:17 +0100 Subject: Adds `SEQ_DECL_SIZE 1` back under `clang` and a test (#23942) --- tests/cpp/fam.h | 4 ++++ tests/cpp/tfam.nim | 7 +++++++ 2 files changed, 11 insertions(+) create mode 100644 tests/cpp/fam.h create mode 100644 tests/cpp/tfam.nim (limited to 'tests/cpp') 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 -- cgit 1.4.1-2-gfad0