[PATCH] D109857: [test] Fix test failure in Clang :: Lexer/char-escapes-delimited.c
Matthew Voss via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 15 16:54:52 PDT 2021
ormris updated this revision to Diff 372839.
ormris added a comment.
- Downgrade to C11 and C++11
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D109857/new/
https://reviews.llvm.org/D109857
Files:
clang/test/Lexer/char-escapes-delimited.c
Index: clang/test/Lexer/char-escapes-delimited.c
===================================================================
--- clang/test/Lexer/char-escapes-delimited.c
+++ clang/test/Lexer/char-escapes-delimited.c
@@ -1,7 +1,7 @@
-// RUN: %clang_cc1 -fsyntax-only -pedantic -verify %s
-// RUN: %clang_cc1 -x c -fsyntax-only -pedantic -verify %s
-// RUN: %clang_cc1 -fwchar-type=short -fno-signed-wchar -fsyntax-only -pedantic -verify %s
-// RUN: %clang_cc1 -x c -fwchar-type=short -fno-signed-wchar -fsyntax-only -pedantic -verify %s
+// RUN: %clang_cc1 -x c++ -std=gnu++11 -fsyntax-only -pedantic -verify %s
+// RUN: %clang_cc1 -x c -std=gnu11 -fsyntax-only -pedantic -verify %s
+// RUN: %clang_cc1 -x c++ -std=gnu++11 -fwchar-type=short -fno-signed-wchar -fsyntax-only -pedantic -verify %s
+// RUN: %clang_cc1 -x c -std=gnu11 -fwchar-type=short -fno-signed-wchar -fsyntax-only -pedantic -verify %s
const char *errors =
"\u{}" //expected-error {{delimited escape sequence cannot be empty}}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109857.372839.patch
Type: text/x-patch
Size: 995 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210915/27864ad1/attachment.bin>
More information about the cfe-commits
mailing list