Currently there is no way using FileCheck to match an explicit newline character. Using, for example, the pattern "{{\n}}" matches an 'n' character, not '\n' (nor for that matter the string "\n"). The current suggested method of using [[:space:]] matches all forms of whitespace, so may not be always suitable.
This change coverts the pattern "\n" into a single '\n' character for use by the regex matcher, within regular expression patterns, if the new switch "--match-new-line-characters" is specified. Backslashes preceding 'n' characters can be escaped using double backslashes, if necessary.
I considered putting this change in without the switch. However, in that case FileCheck's behaviour when presented with the string "a\nnewline" would be different to grep's, which matches "annewline" in this case. I'm not sure that this is desirable.