]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/Index/KeepGoingWithLotsOfErrors.mm
Vendor import of clang trunk r302418:
[FreeBSD/FreeBSD.git] / test / Index / KeepGoingWithLotsOfErrors.mm
1 // RUN: env CINDEXTEST_KEEP_GOING=1 c-index-test -code-completion-at=%s:25:1 %s
2 // Shouldn't crash!
3 // This is the minimized test that triggered an infinite recursion:
4
5 +(BOOL) onEntity {
6 }
7
8 -(const Object &) a_200 {
9 }
10
11 -(int) struct {
12 }
13
14 -(int) bar {
15 }
16
17 -(int) part {
18 }
19
20 +(some_type_t) piece {
21 }
22
23 +(void) z_Z_42 {
24   ([self onEntity: [] { 42];
25   } class: ^ {  }
26 ];
27   [super];
28   BOOL struct;
29 }