forked from OSchip/llvm-project
14 lines
398 B
C
14 lines
398 B
C
typedef int T;
|
|
struct X { int a, b; };
|
|
void f(void *ptr) {
|
|
T* t_ptr = (T *)ptr;
|
|
(void)sizeof(T);
|
|
struct X x = (struct X){1, 2};
|
|
}
|
|
|
|
// RUN: c-index-test -test-load-source all %s | FileCheck %s
|
|
|
|
// CHECK: load-exprs.c:4:15: TypeRef=T:1:13 [Extent=4:15:4:15]
|
|
// CHECK: load-exprs.c:5:16: TypeRef=T:1:13 [Extent=5:16:5:16]
|
|
// FIXME: the source location for "struct X" points at "struct", not "X"
|