summaryrefslogtreecommitdiff
path: root/kythe/cxx/indexer/cxx/testdata/tvar_template/template_depexpr_field_ref.cc
blob: 58821294b069e2583a322ba9c4a8a406b88b2a63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Checks that we don't fall over on fields that depend on expressions.
//- @T defines/binding TyvarT
template <typename T> struct S {
  T t;
  //- @f ref DepF
  //- DepF.node/kind lookup
  //- DepF.text f
  //- !{DepF param.0 Anything}
  //- @thing ref DepThing
  //- DepThing.node/kind lookup
  //- DepThing param.0 TyvarT
  int i = (t.thing(3) + 4).f;
};