[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / PCH / make-integer-seq.cpp
bloba52349cb7c96654ab383660dfcf2eab21b2ba5d2
1 // RUN: %clang_cc1 -std=c++14 -x c++-header %s -emit-pch -o %t.pch
2 // RUN: %clang_cc1 -std=c++14 -x c++ /dev/null -include-pch %t.pch
4 // RUN: %clang_cc1 -std=c++14 -x c++-header %s -emit-pch -fpch-instantiate-templates -o %t.pch
5 // RUN: %clang_cc1 -std=c++14 -x c++ /dev/null -include-pch %t.pch
7 template <class T, T... I>
8 struct Seq {
9 static constexpr T PackSize = sizeof...(I);
12 template <typename T, T N>
13 using MakeSeq = __make_integer_seq<Seq, T, N>;
15 void fn1() {
16 MakeSeq<int, 3> x;