diff options
Diffstat (limited to 'tests/ccgbugs/t13062.nim')
-rw-r--r-- | tests/ccgbugs/t13062.nim | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/ccgbugs/t13062.nim b/tests/ccgbugs/t13062.nim index fed32a1f7..a8d2c1fec 100644 --- a/tests/ccgbugs/t13062.nim +++ b/tests/ccgbugs/t13062.nim @@ -1,5 +1,5 @@ discard """ - output: "[p = nil]" + matrix: "--mm:refc; --mm:orc" targets: "c cpp" """ @@ -24,4 +24,7 @@ type fulfilled: Atomic[bool] var x: Pledge -echo x.repr +when defined(gcRefc): + doAssert x.repr == "[p = nil]" +elif not defined(cpp): # fixme # bug #20081 + doAssert x.repr == "Pledge(p: nil)" |