2012-01-21 06:01:45 +08:00
|
|
|
// RUN: c-index-test -test-load-source all %s | FileCheck %s
|
2010-07-30 09:10:48 +08:00
|
|
|
|
|
|
|
// This test case previously just crashed the frontend.
|
|
|
|
|
|
|
|
struct abc *P;
|
|
|
|
int main(
|
|
|
|
|
|
|
|
// CHECK: StructDecl=abc:5:8 Extent=[5:1 - 5:11]
|
2011-03-08 16:55:46 +08:00
|
|
|
// CHECK: VarDecl=P:5:13 (Definition) Extent=[5:1 - 5:14]
|
2010-07-30 09:10:48 +08:00
|
|
|
// CHECK: VarDecl=main:6:5 (Definition) Extent=[6:1 - 6:9]
|
|
|
|
|