summary refs log tree commit diff stats
path: root/tests/cpp
diff options
context:
space:
mode:
authorringabout <43030857+ringabout@users.noreply.github.com>2023-01-28 04:41:59 +0800
committerGitHub <noreply@github.com>2023-01-27 21:41:59 +0100
commit1431f90d8c3d3ed0afcaee62073d5808cea227ff (patch)
tree0980a960ae6058507a8706d81b8f1e98c8d6e5fb /tests/cpp
parenta7bae919adb952362cb53206140872d2b7424b47 (diff)
downloadNim-1431f90d8c3d3ed0afcaee62073d5808cea227ff.tar.gz
Revert "Fix #13093 C++ Atomics: operator= is implicitly deleted because the default definition would be ill-formed " (#21307)
Revert "Fix #13093 C++ Atomics: operator= is implicitly deleted because the default definition would be ill-formed  (#21169)"

This reverts commit a7bae919adb952362cb53206140872d2b7424b47.
Diffstat (limited to 'tests/cpp')
-rw-r--r--tests/cpp/t13093.nim24
-rw-r--r--tests/cpp/t17982.nim20
2 files changed, 0 insertions, 44 deletions
diff --git a/tests/cpp/t13093.nim b/tests/cpp/t13093.nim
deleted file mode 100644
index 17c730d16..000000000
--- a/tests/cpp/t13093.nim
+++ /dev/null
@@ -1,24 +0,0 @@
-discard """
-  targets: "cpp"
-  action: reject
-  errormsg: "The PledgeObj type requires the following fields to be initialized: refCount"
-"""
-
-import atomics
-
-type
-  Pledge* = object
-    p: PledgePtr
-
-  PledgePtr = ptr PledgeObj
-  PledgeObj = object
-    refCount: Atomic[int32]
-
-proc main() =
-  var pledge: Pledge
-  pledge.p = createShared(PledgeObj)
-  let tmp = PledgeObj() # <---- not allowed: atomics are not copyable
-
-  pledge.p[] = tmp
-
-main()
diff --git a/tests/cpp/t17982.nim b/tests/cpp/t17982.nim
deleted file mode 100644
index 5413f06ff..000000000
--- a/tests/cpp/t17982.nim
+++ /dev/null
@@ -1,20 +0,0 @@
-discard """
-  targets: "cpp"
-  action: "compile"
-"""
-
-type
-  String* {.importcpp: "std::string", header: "string".} = object
-
-proc initString*(): String
-    {.importcpp: "std::string()", header: "string".}
-
-proc append*(this: var String, str: String): String
-    # bug seems to trigger when `#`, `@`, or `$1` is used inside `importcpp`
-    {.importcpp: "#.append(@)", header: "string", discardable.} # <- changed from `importcpp: "append"`
-
-var
-  s1 = initString()
-  s2 = initString()
-
-s1.append s2
10:32:57 -0700 committer Kartik K. Agaram <vc@akkartik.com> 2016-09-17 10:32:57 -0700 3388' href='/akkartik/mu/commit/090scenario_filesystem_test.mu?h=hlt&id=80df524b566a708551f752ce8b82e21738591651'>80df524b ^
6641b247 ^






0893d65e ^
6641b247 ^
2d3d88d9 ^
9ed95def ^
2d3d88d9 ^



0893d65e ^
80df524b ^
2d3d88d9 ^




0230a6cc ^

0893d65e ^
0230a6cc ^




9ed95def ^
0230a6cc ^



0893d65e ^
80df524b ^
0893d65e ^
80df524b ^
0230a6cc ^






0893d65e ^
2d3d88d9 ^

0893d65e ^
760f683f ^
2d3d88d9 ^
80df524b ^
2d3d88d9 ^





1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94