blob: a360efd755a4e85b0889b5e2f8fec9d1cabc567d [file] [log] [blame]
Douglas Gregor336fd812010-01-23 00:40:08 +00001typedef int T;
2struct X { int a, b; };
3void f(void *ptr) {
4 T* t_ptr = (T *)ptr;
5 (void)sizeof(T);
6 struct X x = (struct X){1, 2};
7}
8
9// RUN: c-index-test -test-load-source all %s | FileCheck %s
10
11// CHECK: load-exprs.c:4:15: TypeRef=T:1:13 [Extent=4:15:4:15]
12// CHECK: load-exprs.c:5:16: TypeRef=T:1:13 [Extent=5:16:5:16]
13// FIXME: the source location for "struct X" points at "struct", not "X"