blob: 04f80ad48e1a7c0dd8c653235b988dad383bedf3 [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
Andy Gibbs266dba32012-10-19 12:49:32 +00006// test-case (and hence no expected-* directives).
Jordan Rose7c304f52012-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 Gibbs266dba32012-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 Rose7c304f52012-08-10 01:06:16 +000017// CHECK-NEXT: Line 1: header
18// CHECK-NEXT: Line 10: source
Andy Gibbs266dba32012-10-19 12:49:32 +000019// CHECK-NEXT: 3 errors generated.
Jordan Rose7c304f52012-08-10 01:06:16 +000020#endif