From: Nico Weber Date: Fri, 9 Dec 2022 13:56:02 +0000 (-0500) Subject: [clang] Try to unbreak test/C/drs/dr324.c on Windows X-Git-Tag: upstream/17.0.6~24513 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1481fcf780bde7b115aa395064d71749b1a40889;p=platform%2Fupstream%2Fllvm.git [clang] Try to unbreak test/C/drs/dr324.c on Windows The test uses #pragma GCC dependency "oops\..\dr0xx.c" to test preprocessor "tokenization obscurities". However, that pragma also emits a warning if the refered file is newer than the current file -- and d694e2490af8 edited dr0xx.c, causing this warning to fire. As workaround, touch this file, so that it's newer than dr0xx.c again. --- diff --git a/clang/test/C/drs/dr324.c b/clang/test/C/drs/dr324.c index 870232c..9d52640 100644 --- a/clang/test/C/drs/dr324.c +++ b/clang/test/C/drs/dr324.c @@ -21,7 +21,7 @@ char lit_char = '\y'; /* expected-warning {{unknown escape sequence '\y'}} * 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 +/* This test only makes sense on Windows targets, where the backslash is a valid * path separator. */ #pragma GCC dependency "oops\..\dr0xx.c"