File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed
Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change 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 */
You can’t perform that action at this time.
0 commit comments