brintos

brintos / llvm-project-archived public Read only

0
0
Text · 732 B · f2b4b79 Raw
24 lines · cpp
1// Test this without pch.2// RUN: %clang_cc1 -x c++ -std=c++11 -include %S/cxx-alias-decl.h -emit-llvm -o - %s3 4// Test with pch.5// RUN: %clang_cc1 -x c++ -std=c++11 -emit-pch -o %t %S/cxx-alias-decl.h6// RUN: %clang_cc1 -x c++ -std=c++11 -include-pch %t -emit-llvm -o - %s 7 8// RUN: %clang_cc1 -x c++ -std=c++11 -emit-pch -fpch-instantiate-templates -o %t %S/cxx-alias-decl.h9// RUN: %clang_cc1 -x c++ -std=c++11 -include-pch %t -emit-llvm -o - %s10 11template struct T<S>;12C<A>::A<char> a;13 14using T1 = decltype(a);15using T1 = D<int, char>;16 17using T2 = B<A>;18using T2 = S;19 20using A = int;21template<typename U> using B = S;22template<typename U> using C = T<U>;23template<typename U, typename V> using D = typename T<U>::template A<V>;24