blob: a1c797581ed98f045bcc55384a7b99def8024e5a [file] [log] [blame]
Jordan Rose7c304f52012-08-10 01:06:16 +00001#if 0
2// RUN: %clang_cc1 -verify %s 2>&1 | FileCheck %s
3
4// Please note that all comments are inside "#if 0" blocks so that
5// VerifyDiagnosticConsumer sees no comments while processing this
6// test-case.
7#endif
8
9#include "verify2.h"
10#error source
11
12#if 0
13// expected-error {{should be ignored}}
14
15// CHECK: error: 'error' diagnostics seen but not expected:
16// CHECK-NEXT: Line 1: header
17// CHECK-NEXT: Line 10: source
18// CHECK-NEXT: 2 errors generated.
19#endif