]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/Index/cindex-on-invalid.m
Vendor import of clang trunk r161861:
[FreeBSD/FreeBSD.git] / test / Index / cindex-on-invalid.m
1 // RUN: c-index-test -test-load-source local %s 2>&1 | FileCheck %s
2
3 // <rdar://problem/9123493>
4 void test() {                              
5   goto exit;
6 }
7
8 int foo;
9
10 #define NO 0
11
12 void f(int y) {
13   if (y = NO);
14 }
15
16 int
17
18 // CHECK: cindex-on-invalid.m:5:8: error: use of undeclared label 'exit'
19 // CHECK: cindex-on-invalid.m:13:9:{13:7-13:13}
20 // CHECK: cindex-on-invalid.m:21:1: error: expected identifier or '('
21