Author: Aaron Ballman Date: 2022-10-25T11:35:53-04:00 New Revision: 5be51acbf01a921a23c000c17c3ba4577fab967e
URL: https://github.com/llvm/llvm-project/commit/5be51acbf01a921a23c000c17c3ba4577fab967e DIFF: https://github.com/llvm/llvm-project/commit/5be51acbf01a921a23c000c17c3ba4577fab967e.diff LOG: Speculatively fix the test bots This should hopefully fix the issues found on Linux hosts like: https://lab.llvm.org/buildbot#builders/109/builds/49321 https://lab.llvm.org/buildbot/#/builders/139/builds/30061 Added: Modified: clang/test/C/drs/dr324.c Removed: ################################################################################ diff --git a/clang/test/C/drs/dr324.c b/clang/test/C/drs/dr324.c index a76e185c5302..870232c2e86a 100644 --- a/clang/test/C/drs/dr324.c +++ b/clang/test/C/drs/dr324.c @@ -1,8 +1,8 @@ -/* RUN: %clang_cc1 -std=c89 -fsyntax-only -pedantic -verify %s - RUN: %clang_cc1 -std=c99 -fsyntax-only -pedantic -verify %s - RUN: %clang_cc1 -std=c11 -fsyntax-only -pedantic -verify %s - RUN: %clang_cc1 -std=c17 -fsyntax-only -pedantic -verify %s - RUN: %clang_cc1 -std=c2x -fsyntax-only -pedantic -verify %s +/* RUN: %clang_cc1 -std=c89 -fsyntax-only -fms-extensions -pedantic -verify %s + RUN: %clang_cc1 -std=c99 -fsyntax-only -fms-extensions -pedantic -verify %s + RUN: %clang_cc1 -std=c11 -fsyntax-only -fms-extensions -pedantic -verify %s + RUN: %clang_cc1 -std=c17 -fsyntax-only -fms-extensions -pedantic -verify %s + RUN: %clang_cc1 -std=c2x -fsyntax-only -fms-extensions -pedantic -verify %s */ /* WG14 DR324: yes @@ -20,7 +20,12 @@ char lit_char = '\y'; /* expected-warning {{unknown escape sequence '\y'}} * is using \d but it's in a header-name use rather than a string-literal use. * The second pragma is a string-literal and so the \d is invalid there. */ +#ifdef _WIN32 +/* This test only makes sense on Windows targets where the backslash is a valid + * path separator. + */ #pragma GCC dependency "oops\..\dr0xx.c" +#endif #pragma message("this has a \t tab escape and an invalid \d escape") /* expected-warning {{this has a tab escape and an invalid d escape}} expected-warning {{unknown escape sequence '\d'}} */ _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits