]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/Frontend/verify2.c
Vendor import of clang release_34 branch r197841 (effectively, 3.4 RC3):
[FreeBSD/FreeBSD.git] / test / Frontend / verify2.c
1 #if 0
2 // RUN: not %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 (and hence no expected-* directives).
7 #endif
8
9 #include "verify2.h"
10 #error source
11
12 #if 0
13 // expected-error {{should be ignored}}
14
15 //      CHECK: error: no expected directives found: consider use of 'expected-no-diagnostics'
16 // CHECK-NEXT: error: 'error' diagnostics seen but not expected:
17 // CHECK-NEXT:   Line 1: header
18 // CHECK-NEXT:   Line 10: source
19 // CHECK-NEXT: 3 errors generated.
20 #endif