Christophe,
Didn't you forget to add -save-temps in the testcase? I'm seeing it failing because: g++.dg/cpp/string-3.C -std=c++11 : output file does not exist UNRESOLVED: g++.dg/cpp/string-3.C -std=c++11 scan-file BEGIN "R\\"(\\n)\\""\n END
Surprisingly we emit a .i file, but I'd also flubbed the regexp with insufficient escaping.
Fixed thusly. nathan -- Nathan Sidwell
2017-10-11 Nathan Sidwell <nat...@acm.org> * g++.dg/cpp/string-3.C: Fix dg-final. Index: g++.dg/cpp/string-3.C =================================================================== --- g++.dg/cpp/string-3.C (revision 253622) +++ g++.dg/cpp/string-3.C (working copy) @@ -6,4 +6,4 @@ BEGIN STRINGIZE(R"( )") END -// { dg-final { scan-file string-3.ii "BEGIN \"R\\\"(\\n)\\\"\"\n END" } } +// { dg-final { scan-file string-3.i "BEGIN \"R\\\\\"\\(\\\\n\\)\\\\\"\"\n END" } }