summaryrefslogtreecommitdiff
path: root/test/Lexer/cxx1z-trigraphs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/Lexer/cxx1z-trigraphs.cpp')
-rw-r--r--test/Lexer/cxx1z-trigraphs.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/Lexer/cxx1z-trigraphs.cpp b/test/Lexer/cxx1z-trigraphs.cpp
index 0ea2adbe1e034..08c45e51f8332 100644
--- a/test/Lexer/cxx1z-trigraphs.cpp
+++ b/test/Lexer/cxx1z-trigraphs.cpp
@@ -1,5 +1,5 @@
// RUN: %clang_cc1 -std=c++1z %s -verify
-// RUN: %clang_cc1 -std=c++1z %s -ftrigraphs -fsyntax-only
+// RUN: %clang_cc1 -std=c++1z %s -ftrigraphs -fsyntax-only 2>&1 | FileCheck --check-prefix=TRIGRAPHS %s
??= define foo ; // expected-error {{}} expected-warning {{trigraph ignored}}
@@ -7,3 +7,8 @@ static_assert("??="[0] == '#', ""); // expected-error {{failed}} expected-warnin
// ??/
error here; // expected-error {{}}
+
+// Note, there is intentionally trailing whitespace two lines below.
+// TRIGRAPHS: :[[@LINE+1]]:{{.*}} backslash and newline separated by space
+// ??/
+error here; // expected-error {{}}