blob: 73eda4d815de8a1ea5aa9dbbcacc05f23518bb41 [file] [log] [blame]
Jordan Roseb00073d2012-08-10 01:06:16 +00001#if 0
Rafael Espindola925213b2013-07-04 16:16:58 +00002// RUN: not %clang_cc1 -verify %s 2>&1 | FileCheck %s
Jordan Roseb00073d2012-08-10 01:06:16 +00003
4// Please note that all comments are inside "#if 0" blocks so that
5// VerifyDiagnosticConsumer sees no comments while processing this
Andy Gibbs0fea0452012-10-19 12:49:32 +00006// test-case (and hence no expected-* directives).
Jordan Roseb00073d2012-08-10 01:06:16 +00007#endif
8
9#include "verify2.h"
10#error source
11
12#if 0
13// expected-error {{should be ignored}}
14
Andy Gibbs0fea0452012-10-19 12:49:32 +000015// CHECK: error: no expected directives found: consider use of 'expected-no-diagnostics'
16// CHECK-NEXT: error: 'error' diagnostics seen but not expected:
Jordan Roseb00073d2012-08-10 01:06:16 +000017// CHECK-NEXT: Line 1: header
18// CHECK-NEXT: Line 10: source
Andy Gibbs0fea0452012-10-19 12:49:32 +000019// CHECK-NEXT: 3 errors generated.
Jordan Roseb00073d2012-08-10 01:06:16 +000020#endif