diff options
Diffstat (limited to 'tests/compiler/tcppCompileToNamespace.nim')
-rw-r--r-- | tests/compiler/tcppCompileToNamespace.nim | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/compiler/tcppCompileToNamespace.nim b/tests/compiler/tcppCompileToNamespace.nim new file mode 100644 index 000000000..1d0977236 --- /dev/null +++ b/tests/compiler/tcppCompileToNamespace.nim @@ -0,0 +1,12 @@ +discard """ +cmd: "nim cpp --cppCompileToNamespace:foo $options -r $file" +target: cpp +""" + +# Theoretically nim could just ignore the flag cppCompileToNamespace +# and this test would pass. Setting ``ccodeCheck`` for a c++ target +# doesn't work. + +import os + +echo "a" / "b" |