From: Daniel Dunbar Date: Tue, 7 Apr 2009 17:09:43 +0000 (+0000) Subject: Use %s in test, not hard coded name. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=82fc0cb7883747942326d6d6ca1333b27bd647f0;p=clang Use %s in test, not hard coded name. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68521 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Preprocessor/optimize.c b/test/Preprocessor/optimize.c index 55df0c1196..0c2e817d6a 100644 --- a/test/Preprocessor/optimize.c +++ b/test/Preprocessor/optimize.c @@ -1,4 +1,4 @@ -// RUN: clang-cc -Eonly optimize.c -DOPT_O2 -O2 -verify && +// RUN: clang-cc -Eonly %s -DOPT_O2 -O2 -verify && #ifdef OPT_O2 #ifndef __OPTIMIZE__ #error "__OPTIMIZE__ not defined" @@ -8,7 +8,7 @@ #endif #endif -// RUN: clang-cc -Eonly optimize.c -DOPT_O0 -O0 -verify && +// RUN: clang-cc -Eonly %s -DOPT_O0 -O0 -verify && #ifdef OPT_O0 #ifdef __OPTIMIZE__ #error "__OPTIMIZE__ defined" @@ -18,7 +18,7 @@ #endif #endif -// RUN: clang-cc -Eonly optimize.c -DOPT_OS -Os -verify +// RUN: clang-cc -Eonly %s -DOPT_OS -Os -verify #ifdef OPT_OS #ifndef __OPTIMIZE__ #error "__OPTIMIZE__ not defined"