summaryrefslogtreecommitdiffstats
path: root/test/Preprocessor/optimize.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Preprocessor/optimize.c')
-rw-r--r--test/Preprocessor/optimize.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/Preprocessor/optimize.c b/test/Preprocessor/optimize.c
index 97f841a..0167e70 100644
--- a/test/Preprocessor/optimize.c
+++ b/test/Preprocessor/optimize.c
@@ -1,5 +1,6 @@
// RUN: %clang_cc1 -Eonly %s -DOPT_O2 -O2 -verify
#ifdef OPT_O2
+ // expected-no-diagnostics
#ifndef __OPTIMIZE__
#error "__OPTIMIZE__ not defined"
#endif
@@ -10,6 +11,7 @@
// RUN: %clang_cc1 -Eonly %s -DOPT_O0 -O0 -verify
#ifdef OPT_O0
+ // expected-no-diagnostics
#ifdef __OPTIMIZE__
#error "__OPTIMIZE__ defined"
#endif
@@ -20,6 +22,7 @@
// RUN: %clang_cc1 -Eonly %s -DOPT_OS -Os -verify
#ifdef OPT_OS
+ // expected-no-diagnostics
#ifndef __OPTIMIZE__
#error "__OPTIMIZE__ not defined"
#endif
OpenPOWER on IntegriCloud