2009-07-22 07:53:31 +08:00
|
|
|
// RUN: clang-cc -fsyntax-only -verify %s
|
|
|
|
|
2009-08-01 02:36:42 +08:00
|
|
|
template<typename T> struct X1 { };
|
|
|
|
|
2009-07-22 07:53:31 +08:00
|
|
|
template<typename T>
|
|
|
|
struct X0 {
|
|
|
|
typedef int size_type;
|
2009-08-01 02:36:42 +08:00
|
|
|
typedef T value_type;
|
2009-07-22 07:53:31 +08:00
|
|
|
|
|
|
|
size_type f0() const;
|
2009-08-01 02:36:42 +08:00
|
|
|
value_type *f1();
|
|
|
|
X1<value_type*> f2();
|
2009-07-22 07:53:31 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
template<typename T>
|
2009-08-01 02:36:42 +08:00
|
|
|
typename X0<T>::size_type X0<T>::f0() const {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
template<typename U>
|
|
|
|
typename X0<U>::value_type *X0<U>::f1() {
|
|
|
|
return 0;
|
|
|
|
};
|
|
|
|
|
|
|
|
template<typename U>
|
|
|
|
X1<typename X0<U>::value_type*> X0<U>::f2() {
|
|
|
|
return 0;
|
|
|
|
};
|