diff --git a/vlib/builtin/string_test.v b/vlib/builtin/string_test.v index 24d395519e..6cc6ff6f16 100644 --- a/vlib/builtin/string_test.v +++ b/vlib/builtin/string_test.v @@ -517,3 +517,12 @@ fn test_raw_inter() { assert s.contains('$') } +fn test_c_r() { + // This used to break because of r'' and c'' + c := 42 + println('$c') + r := 50 + println('$r') + +} + diff --git a/vlib/compiler/cc.v b/vlib/compiler/cc.v index d9e2b0871d..a71566ab59 100644 --- a/vlib/compiler/cc.v +++ b/vlib/compiler/cc.v @@ -31,7 +31,6 @@ fn (v mut V) cc() { vdir := os.dir(vexe) // Just create a C/JavaScript file and exit // for example: `v -o v.c compiler` - println('CC() $v.out_name') if v.out_name.ends_with('.c') || v.out_name.ends_with('.js') { // Translating V code to JS by launching vjs. // Using a separate process for V.js is for performance mostly,