From 003fed8269b3f6d2b1618b670fc73d28972999e4 Mon Sep 17 00:00:00 2001 From: Matthew Voss Date: Wed, 15 Sep 2021 14:09:20 -0700 Subject: [PATCH] [test] Fix test failure in Clang :: Lexer/char-escapes-delimited.c Specify the C and C++ standards explicitly for this test. This avoids failures for drivers that default to older standards. Differential Revision: https://reviews.llvm.org/D109857 --- clang/test/Lexer/char-escapes-delimited.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/clang/test/Lexer/char-escapes-delimited.c b/clang/test/Lexer/char-escapes-delimited.c index ad413d1843b0..62465db464bc 100644 --- a/clang/test/Lexer/char-escapes-delimited.c +++ b/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}}