Douglas Gregor | 336fd81 | 2010-01-23 00:40:08 +0000 | [diff] [blame^] | 1 | typedef int T; |
2 | struct X { int a, b; }; | ||||
3 | void 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" |