1 // RUN: %clang_cc1 -Eonly %s -DOPT_O2 -O2 -verify
3 // expected-no-diagnostics
5 #error "__OPTIMIZE__ not defined"
7 #ifdef __OPTIMIZE_SIZE__
8 #error "__OPTIMIZE_SIZE__ defined"
12 // RUN: %clang_cc1 -Eonly %s -DOPT_O0 -verify
14 // expected-no-diagnostics
16 #error "__OPTIMIZE__ defined"
18 #ifdef __OPTIMIZE_SIZE__
19 #error "__OPTIMIZE_SIZE__ defined"
23 // RUN: %clang_cc1 -Eonly %s -DOPT_OS -Os -verify
25 // expected-no-diagnostics
27 #error "__OPTIMIZE__ not defined"
29 #ifndef __OPTIMIZE_SIZE__
30 #error "__OPTIMIZE_SIZE__ not defined"