File tree Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -475,7 +475,9 @@ typedef char* NCSTRING;
475
475
} name = {{length, (NI) ((NU)length | NIM_STRLIT_FLAG)}, str}
476
476
477
477
/* declared size of a sequence/variable length array: */
478
- #if defined(__GNUC__) || defined(__clang__) || defined(_MSC_VER)
478
+ #if defined(__cplusplus) && defined(__clang__)
479
+ # define SEQ_DECL_SIZE 1
480
+ #elif defined(__GNUC__) || defined(_MSC_VER)
479
481
# define SEQ_DECL_SIZE /* empty is correct! */
480
482
#else
481
483
# define SEQ_DECL_SIZE 1000000
Original file line number Diff line number Diff line change
1
+ struct Test {
2
+ ~Test () {
3
+ }
4
+ };
Original file line number Diff line number Diff line change
1
+ discard """
2
+ targets: "cpp"
3
+ """
4
+ type
5
+ Test {.importcpp , header : " fam.h" .} = object
6
+
7
+ let test = newSeq [Test ]()
You can’t perform that action at this time.
0 commit comments