1 // RUN: %clang_cc1 -fsyntax-only -verify %s
4 template<class T
> struct a
{
6 return typename
T::x();
17 // Some extra tests for invalid cases
18 template<class T
> struct test2
{ T
b() { return typename
T::a
; } }; // expected-error{{expected '(' for function-style cast or type construction}}
19 template<class T
> struct test3
{ T
b() { return typename a
; } }; // expected-error{{expected a qualified name after 'typename'}}