aboutsummaryrefslogtreecommitdiff
path: root/test/Lexer/escape_newline.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Lexer/escape_newline.c')
-rw-r--r--test/Lexer/escape_newline.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Lexer/escape_newline.c b/test/Lexer/escape_newline.c
new file mode 100644
index 000000000000..ce120ed7c828
--- /dev/null
+++ b/test/Lexer/escape_newline.c
@@ -0,0 +1,7 @@
+// RUN: clang-cc -E -trigraphs %s | grep -- ' ->' &&
+// RUN: clang-cc -E -trigraphs %s 2>&1 | grep 'backslash and newline separated by space' &&
+// RUN: clang-cc -E -trigraphs %s 2>&1 | grep 'trigraph converted'
+
+// This is an ugly way to spell a -> token.
+ -??/
+>