blob: 9562bcb51ef7643d6fa7410efcce9ee6feebddd7 [file] [log] [blame]
Douglas Gregorf187420f2009-06-17 23:37:01 +00001// RUN: clang-cc -fsyntax-only -verify %s
Douglas Gregorfdca4a72009-03-27 04:21:56 +00002
3class A;
4
5class S {
6public:
7 template<typename T> struct A {
8 struct Nested {
9 typedef T type;
10 };
11 };
12};
13
14int i;
15S::A<int>::Nested::type *ip = &i;
16
Douglas Gregora3dff8e2009-08-24 23:03:25 +000017template<typename T>
18struct X0 {
19 template<typename U> void f0(T, U);
20
21 template<typename U>
22 struct Inner0 {
23 void f1(T, U);
24 };
25};
26
27template<typename X> template<typename Y> void X0<X>::f0(X, Y) { }
28
29// FIXME:
30// template<typename X> template<typename Y> void X0<X>::Inner0<Y>::f1(X, Y) { }