2010-03-26 09:34:53 +08:00
|
|
|
// RUN: c-index-test -test-load-source local %s 2>&1 | FileCheck %s
|
2009-12-05 10:17:18 +08:00
|
|
|
|
2011-03-16 07:47:49 +08:00
|
|
|
// <rdar://problem/9123493>
|
|
|
|
void test() {
|
|
|
|
goto exit;
|
|
|
|
}
|
|
|
|
|
2009-12-05 10:17:18 +08:00
|
|
|
int foo;
|
2011-04-21 05:16:21 +08:00
|
|
|
|
|
|
|
#define NO 0
|
|
|
|
|
|
|
|
void f(int y) {
|
|
|
|
if (y = NO);
|
|
|
|
}
|
|
|
|
|
2009-12-05 10:17:18 +08:00
|
|
|
int
|
2010-03-26 09:34:53 +08:00
|
|
|
|
2011-03-16 07:47:49 +08:00
|
|
|
// CHECK: cindex-on-invalid.m:5:8: error: use of undeclared label 'exit'
|
2011-04-21 05:16:21 +08:00
|
|
|
// CHECK: cindex-on-invalid.m:13:9:{13:7-13:13}
|
|
|
|
// CHECK: cindex-on-invalid.m:21:1: error: expected identifier or '('
|
2011-03-16 07:47:49 +08:00
|
|
|
|