mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-09 17:43:57 +00:00
07542c5b2d
adjust the a ending macro location to the end of the instantiation location before adjusting it to the end of the token. Fixes <rdar://problem/9021561>. llvm-svn: 129872
22 lines
412 B
Objective-C
22 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 '('
|
|
|