[clang] 1481fcf - [clang] Try to unbreak test/C/drs/dr324.c on Windows

Nico Weber via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 9 05:57:35 PST 2022


Author: Nico Weber
Date: 2022-12-09T08:57:28-05:00
New Revision: 1481fcf780bde7b115aa395064d71749b1a40889

URL: https://github.com/llvm/llvm-project/commit/1481fcf780bde7b115aa395064d71749b1a40889
DIFF: https://github.com/llvm/llvm-project/commit/1481fcf780bde7b115aa395064d71749b1a40889.diff

LOG: [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.

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 870232c2e86ae..9d5264017b3db 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"


        


More information about the cfe-commits mailing list