[clang] d16c590 - Resolve possible test failure on Windows
Chris B via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 9 11:45:50 PST 2022
Author: Chris Bieneman
Date: 2022-12-09T13:43:52-06:00
New Revision: d16c59013056f1bf8844ded8faeb0cf01b1c3613
URL: https://github.com/llvm/llvm-project/commit/d16c59013056f1bf8844ded8faeb0cf01b1c3613
DIFF: https://github.com/llvm/llvm-project/commit/d16c59013056f1bf8844ded8faeb0cf01b1c3613.diff
LOG: Resolve possible test failure on Windows
If dr0xx.c's timestamp is newer than dr324.c the preprocessor will issue
an unexpected diagnostic in dr324.c. To prevent this diagnostic we can
have dr324.c run touch against itself to force its timestamp to be new.
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 9d5264017b3db..2d75853e5af7c 100644
--- a/clang/test/C/drs/dr324.c
+++ b/clang/test/C/drs/dr324.c
@@ -1,4 +1,5 @@
-/* RUN: %clang_cc1 -std=c89 -fsyntax-only -fms-extensions -pedantic -verify %s
+/* RUN: touch %s
+ RUN: %clang_cc1 -std=c89 -fsyntax-only -fms-extensions -pedantic -verify %s
RUN: %clang_cc1 -std=c99 -fsyntax-only -fms-extensions -pedantic -verify %s
RUN: %clang_cc1 -std=c11 -fsyntax-only -fms-extensions -pedantic -verify %s
RUN: %clang_cc1 -std=c17 -fsyntax-only -fms-extensions -pedantic -verify %s
More information about the cfe-commits
mailing list