summary refs log tree commit diff stats
path: root/tests/ccgbugs/tcgbug.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ccgbugs/tcgbug.nim')
-rw-r--r--tests/ccgbugs/tcgbug.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/ccgbugs/tcgbug.nim b/tests/ccgbugs/tcgbug.nim
index 535424a27..3e4755f2f 100644
--- a/tests/ccgbugs/tcgbug.nim
+++ b/tests/ccgbugs/tcgbug.nim
@@ -20,7 +20,8 @@ new(a)
 q(a)
 
 # bug #914
-var x = newWideCString("Hello")
+when defined(windows):
+  var x = newWideCString("Hello")
 
 echo "success"