llvm-for-llvmta/tools/clang/test/Frontend/verify-any-file.c

15 lines
609 B
C
Raw Permalink Normal View History

2022-04-25 13:02:35 +02:00
// RUN: not %clang_cc1 -verify %s 2>&1 | FileCheck %s
#include "verify-any-file.h"
// expected-error@*:* {{unknown type name 'unexpected'}}
// expected-error@*:* {{missing error}}
// expected-error@*:123 {{invalid line : "*" required}}
//
// CHECK: error: 'error' diagnostics expected but not seen:
// CHECK-NEXT: File * Line * (directive at {{.*}}verify-any-file.c:6): missing error
// CHECK-NEXT: error: 'error' diagnostics seen but not expected:
// CHECK-NEXT: File {{.*}}verify-any-file.c Line 8: missing or invalid line number following '@' in expected '*'
// CHECK-NEXT: 2 errors generated.