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