Skip to content

Commit 5be51ac

Browse files
committed
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
1 parent 87ec22d commit 5be51ac

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

clang/test/C/drs/dr324.c

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
/* RUN: %clang_cc1 -std=c89 -fsyntax-only -pedantic -verify %s
2-
RUN: %clang_cc1 -std=c99 -fsyntax-only -pedantic -verify %s
3-
RUN: %clang_cc1 -std=c11 -fsyntax-only -pedantic -verify %s
4-
RUN: %clang_cc1 -std=c17 -fsyntax-only -pedantic -verify %s
5-
RUN: %clang_cc1 -std=c2x -fsyntax-only -pedantic -verify %s
1+
/* RUN: %clang_cc1 -std=c89 -fsyntax-only -fms-extensions -pedantic -verify %s
2+
RUN: %clang_cc1 -std=c99 -fsyntax-only -fms-extensions -pedantic -verify %s
3+
RUN: %clang_cc1 -std=c11 -fsyntax-only -fms-extensions -pedantic -verify %s
4+
RUN: %clang_cc1 -std=c17 -fsyntax-only -fms-extensions -pedantic -verify %s
5+
RUN: %clang_cc1 -std=c2x -fsyntax-only -fms-extensions -pedantic -verify %s
66
*/
77

88
/* WG14 DR324: yes
@@ -20,7 +20,12 @@ char lit_char = '\y'; /* expected-warning {{unknown escape sequence '\y'}}
2020
* is using \d but it's in a header-name use rather than a string-literal use.
2121
* The second pragma is a string-literal and so the \d is invalid there.
2222
*/
23+
#ifdef _WIN32
24+
/* This test only makes sense on Windows targets where the backslash is a valid
25+
* path separator.
26+
*/
2327
#pragma GCC dependency "oops\..\dr0xx.c"
28+
#endif
2429
#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}}
2530
expected-warning {{unknown escape sequence '\d'}}
2631
*/

0 commit comments

Comments
 (0)