cxx-alias-decl.cpp 586 B

1234567891011121314151617181920
  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. // Test with pch.
  4. // RUN: %clang_cc1 -x c++ -std=c++11 -emit-pch -o %t %S/cxx-alias-decl.h
  5. // RUN: %clang_cc1 -x c++ -std=c++11 -include-pch %t -fsyntax-only -emit-llvm -o - %s
  6. template struct T<S>;
  7. C<A>::A<char> a;
  8. using T1 = decltype(a);
  9. using T1 = D<int, char>;
  10. using T2 = B<A>;
  11. using T2 = S;
  12. using A = int;
  13. template<typename U> using B = S;
  14. template<typename U> using C = T<U>;
  15. template<typename U, typename V> using D = typename T<U>::template A<V>;