summaryrefslogtreecommitdiffstats
path: root/clang/test/Lexer/cxx1z-trigraphs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Lexer/cxx1z-trigraphs.cpp')
-rw-r--r--clang/test/Lexer/cxx1z-trigraphs.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/Lexer/cxx1z-trigraphs.cpp b/clang/test/Lexer/cxx1z-trigraphs.cpp
new file mode 100644
index 00000000000..410626fd7bb
--- /dev/null
+++ b/clang/test/Lexer/cxx1z-trigraphs.cpp
@@ -0,0 +1,9 @@
+// RUN: %clang_cc1 -std=c++1z %s -verify
+// RUN: %clang_cc1 -std=c++1z %s -trigraphs -fsyntax-only
+
+??= define foo ; // expected-error {{}} expected-warning {{trigraph ignored}}
+
+static_assert("??="[0] == '#', ""); // expected-error {{failed}} expected-warning {{trigraph ignored}}
+
+// ??/
+error here; // expected-error {{}}
OpenPOWER on IntegriCloud