From: Chris Bieneman Date: Fri, 9 Dec 2022 19:27:49 +0000 (-0600) Subject: Resolve possible test failure on Windows X-Git-Tag: upstream/17.0.6~24466 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d16c59013056f1bf8844ded8faeb0cf01b1c3613;p=platform%2Fupstream%2Fllvm.git 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. --- diff --git a/clang/test/C/drs/dr324.c b/clang/test/C/drs/dr324.c index 9d52640..2d75853 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