diff options
Diffstat (limited to 'kythe/cxx/indexer/cxx/testdata/tvar_template/template_instance_type_from_class.cc')
-rw-r--r-- | kythe/cxx/indexer/cxx/testdata/tvar_template/template_instance_type_from_class.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/kythe/cxx/indexer/cxx/testdata/tvar_template/template_instance_type_from_class.cc b/kythe/cxx/indexer/cxx/testdata/tvar_template/template_instance_type_from_class.cc new file mode 100644 index 000000000..474b0dab6 --- /dev/null +++ b/kythe/cxx/indexer/cxx/testdata/tvar_template/template_instance_type_from_class.cc @@ -0,0 +1,8 @@ +// Checks the representation of types from template instantiations. +template +<typename X> +struct C { +using T = typename X::Y; +}; +struct D { using Y = int; }; +using S = C<D>::T; |