minix/external/bsd/llvm/dist/clang/test/Index/cindex-on-invalid.m
Lionel Sambuc f4a2713ac8 Importing netbsd clang -- pristine
Change-Id: Ia40e9ffdf29b5dab2f122f673ff6802a58bc690f
2014-07-28 17:05:57 +02:00

21 lines
412 B
Objective-C

// RUN: c-index-test -test-load-source local %s 2>&1 | FileCheck %s
// <rdar://problem/9123493>
void test() {
goto exit;
}
int foo;
#define NO 0
void f(int y) {
if (y = NO);
}
int
// CHECK: cindex-on-invalid.m:5:8: error: use of undeclared label 'exit'
// CHECK: cindex-on-invalid.m:13:9:{13:7-13:13}
// CHECK: cindex-on-invalid.m:21:1: error: expected identifier or '('