[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / PCH / cxx-alias-decl.cpp
blob2fdf40c0ae839ceb614547950cd1492805c4e897
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
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
8 // RUN: %clang_cc1 -x c++ -std=c++11 -emit-pch -fpch-instantiate-templates -o %t %S/cxx-alias-decl.h
9 // RUN: %clang_cc1 -x c++ -std=c++11 -include-pch %t -fsyntax-only -emit-llvm -o - %s
11 template struct T<S>;
12 C<A>::A<char> a;
14 using T1 = decltype(a);
15 using T1 = D<int, char>;
17 using T2 = B<A>;
18 using T2 = S;
20 using A = int;
21 template<typename U> using B = S;
22 template<typename U> using C = T<U>;
23 template<typename U, typename V> using D = typename T<U>::template A<V>;