// RUN: clang-cc -Eonly %s -DOPT_O2 -O2 -verify &&
#ifdef OPT_O2
  #ifndef __OPTIMIZE__
    #error "__OPTIMIZE__ not defined"
  #endif
  #ifdef __OPTIMIZE_SIZE
    #error "__OPTIMIZE_SIZE__ defined"
  #endif
#endif

// RUN: clang-cc -Eonly %s -DOPT_O0 -O0 -verify &&
#ifdef OPT_O0
  #ifdef __OPTIMIZE__
    #error "__OPTIMIZE__ defined"
  #endif
  #ifdef __OPTIMIZE_SIZE
    #error "__OPTIMIZE_SIZE__ defined"
  #endif
#endif

// RUN: clang-cc -Eonly %s -DOPT_OS -Os -verify
#ifdef OPT_OS
  #ifndef __OPTIMIZE__
    #error "__OPTIMIZE__ not defined"
  #endif
  #ifndef __OPTIMIZE_SIZE
    #error "__OPTIMIZE_SIZE__ not defined"
  #endif
#endif

// RUN: clang-cc -Eonly optimize.c -DOPT_O2 -O2 -verify &&
#ifdef OPT_O2
  #ifndef __OPTIMIZE__
    #error "__OPTIMIZE__ not defined"
  #endif
  #ifdef __OPTIMIZE_SIZE
    #error "__OPTIMIZE_SIZE__ defined"
  #endif
#endif

// RUN: clang-cc -Eonly optimize.c -DOPT_O0 -O0 -verify &&
#ifdef OPT_O0
  #ifdef __OPTIMIZE__
    #error "__OPTIMIZE__ defined"
  #endif
  #ifdef __OPTIMIZE_SIZE
    #error "__OPTIMIZE_SIZE__ defined"
  #endif
#endif

// RUN: clang-cc -Eonly optimize.c -DOPT_OS -Os -verify
#ifdef OPT_OS
  #ifndef __OPTIMIZE__
    #error "__OPTIMIZE__ not defined"
  #endif
  #ifndef __OPTIMIZE_SIZE
    #error "__OPTIMIZE_SIZE__ not defined"
  #endif
#endif

--- 
+++ 
@@ -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"
Use %s in test, not hard coded name.


git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@68521 91177308-0d34-0410-b5e6-96231b3b80d8
