2012-08-10 05:06:16 +04:00
|
|
|
// RUN: %clang_cc1 -arcmt-check -verify %s
|
|
|
|
// RUN: %clang_cc1 -arcmt-check -verify %t.invalid 2>&1 | FileCheck %s
|
|
|
|
|
|
|
|
#if 0
|
|
|
|
// expected-error {{should be ignored}}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#error should not be ignored
|
|
|
|
// expected-error@-1 {{should not be ignored}}
|
|
|
|
|
2012-10-19 16:49:32 +04:00
|
|
|
// CHECK: error: no expected directives found: consider use of 'expected-no-diagnostics'
|
|
|
|
// CHECK-NEXT: error: 'error' diagnostics seen but not expected:
|
2012-08-10 05:06:16 +04:00
|
|
|
// CHECK-NEXT: (frontend): error reading '{{.*}}verify.m.tmp.invalid'
|
2012-10-19 16:49:32 +04:00
|
|
|
// CHECK-NEXT: 2 errors generated.
|