2012-08-10 09:06:16 +08:00
|
|
|
#if 0
|
2013-07-05 00:16:58 +08:00
|
|
|
// RUN: not %clang_cc1 -verify %s 2>&1 | FileCheck %s
|
2012-08-10 09:06:16 +08:00
|
|
|
|
|
|
|
// Please note that all comments are inside "#if 0" blocks so that
|
|
|
|
// VerifyDiagnosticConsumer sees no comments while processing this
|
2012-10-19 20:49:32 +08:00
|
|
|
// test-case (and hence no expected-* directives).
|
2012-08-10 09:06:16 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "verify2.h"
|
|
|
|
#error source
|
|
|
|
|
|
|
|
#if 0
|
|
|
|
// expected-error {{should be ignored}}
|
|
|
|
|
2012-10-19 20:49:32 +08:00
|
|
|
// CHECK: error: no expected directives found: consider use of 'expected-no-diagnostics'
|
|
|
|
// CHECK-NEXT: error: 'error' diagnostics seen but not expected:
|
2012-08-10 09:06:16 +08:00
|
|
|
// CHECK-NEXT: Line 1: header
|
|
|
|
// CHECK-NEXT: Line 10: source
|
2012-10-19 20:49:32 +08:00
|
|
|
// CHECK-NEXT: 3 errors generated.
|
2012-08-10 09:06:16 +08:00
|
|
|
#endif
|