xo-indentlog: bugfix: gcc version check on embedded newline test
This commit is contained in:
parent
9ef4f66ec3
commit
453f8aa9e1
1 changed files with 6 additions and 1 deletions
|
|
@ -34,7 +34,12 @@ namespace ut {
|
|||
quoted_tcase("foo", false, "\"foo\""),
|
||||
|
||||
quoted_tcase("foo\n", true, "\"foo\\n\""),
|
||||
quoted_tcase("foo\n", false, "\"foo\n\""), /* writes "foo\n", but gets turned into newline somewhere */
|
||||
#if __GNUC__ >= 13 && __GNUC_MINOR__ >= 2
|
||||
/* writes "foo\n", but gets turned into newline somewhere. only on very recent gcc. */
|
||||
quoted_tcase("foo\n", false, "\"foo\n\""),
|
||||
#else
|
||||
quoted_tcase("foo\n", false, "\"foo\\n\""),
|
||||
#endif
|
||||
|
||||
quoted_tcase("two words", true, "\"two words\""),
|
||||
quoted_tcase("two words", false, "\"two words\""),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue