[clang] Try to unbreak test/C/drs/dr324.c on Windows
authorNico Weber <thakis@chromium.org>
Fri, 9 Dec 2022 13:56:02 +0000 (08:56 -0500)
committerNico Weber <thakis@chromium.org>
Fri, 9 Dec 2022 13:57:28 +0000 (08:57 -0500)
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.

clang/test/C/drs/dr324.c

index 870232c..9d52640 100644 (file)
@@ -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"