diff options
author | Andy Gibbs <andyg1001@hotmail.co.uk> | 2012-10-19 12:44:48 +0000 |
---|---|---|
committer | Andy Gibbs <andyg1001@hotmail.co.uk> | 2012-10-19 12:44:48 +0000 |
commit | 8e8fb3be5bd78f0564444eca02b404566a5f3b5d (patch) | |
tree | e97df0cbf59fac68bc269a2c75f0fa0090b3c481 /test/Preprocessor/optimize.c | |
parent | 4a529d26d6ccfc9b3d11031f1256f4f87055c562 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166280 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Preprocessor/optimize.c')
-rw-r--r-- | test/Preprocessor/optimize.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/Preprocessor/optimize.c b/test/Preprocessor/optimize.c index 97f841a6fb..0167e70e01 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 |