aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Preprocessor/optimize.c
diff options
context:
space:
mode:
authorAndy Gibbs <andyg1001@hotmail.co.uk>2012-10-19 12:44:48 +0000
committerAndy Gibbs <andyg1001@hotmail.co.uk>2012-10-19 12:44:48 +0000
commitc6e68daac0fa6e77a89f3ca72f266a528503dd1c (patch)
treec8d92499ba7d35b64177cfc8e4e3ccad1f699145 /clang/test/Preprocessor/optimize.c
parentac51de6ec2f01fce1d9dadf59a86ffe825c42bc7 (diff)
downloadllvm-c6e68daac0fa6e77a89f3ca72f266a528503dd1c.zip
llvm-c6e68daac0fa6e77a89f3ca72f266a528503dd1c.tar.gz
llvm-c6e68daac0fa6e77a89f3ca72f266a528503dd1c.tar.bz2
Prior to adding the new "expected-no-diagnostics" directive to VerifyDiagnosticConsumer, make the necessary adjustment to 580 test-cases which will henceforth require this new directive.
llvm-svn: 166280
Diffstat (limited to 'clang/test/Preprocessor/optimize.c')
-rw-r--r--clang/test/Preprocessor/optimize.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/Preprocessor/optimize.c b/clang/test/Preprocessor/optimize.c
index 97f841a..0167e70 100644
--- a/clang/test/Preprocessor/optimize.c
+++ b/clang/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