1*f4a2713aSLionel Sambuc // Test this without pch. 2*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -x c++ -std=c++11 -include %S/cxx-alias-decl.h -fsyntax-only -emit-llvm -o - %s 3*f4a2713aSLionel Sambuc 4*f4a2713aSLionel Sambuc // Test with pch. 5*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -x c++ -std=c++11 -emit-pch -o %t %S/cxx-alias-decl.h 6*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -x c++ -std=c++11 -include-pch %t -fsyntax-only -emit-llvm -o - %s 7*f4a2713aSLionel Sambuc 8*f4a2713aSLionel Sambuc template struct T<S>; 9*f4a2713aSLionel Sambuc C<A>::A<char> a; 10*f4a2713aSLionel Sambuc 11*f4a2713aSLionel Sambuc using T1 = decltype(a); 12*f4a2713aSLionel Sambuc using T1 = D<int, char>; 13*f4a2713aSLionel Sambuc 14*f4a2713aSLionel Sambuc using T2 = B<A>; 15*f4a2713aSLionel Sambuc using T2 = S; 16*f4a2713aSLionel Sambuc 17*f4a2713aSLionel Sambuc using A = int; 18*f4a2713aSLionel Sambuc template<typename U> using B = S; 19*f4a2713aSLionel Sambuc template<typename U> using C = T<U>; 20*f4a2713aSLionel Sambuc template<typename U, typename V> using D = typename T<U>::template A<V>; 21