annotate clang/test/PCH/make-integer-seq.cpp @ 222:81f6424ef0e3 llvm-original

LLVM original branch
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 18 Jul 2021 22:10:01 +0900
parents 79ff65ed7e25
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: %clang_cc1 -std=c++14 -x c++-header %s -emit-pch -o %t.pch
anatofuz
parents:
diff changeset
2 // RUN: %clang_cc1 -std=c++14 -x c++ /dev/null -include-pch %t.pch
anatofuz
parents:
diff changeset
3
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
4 // RUN: %clang_cc1 -std=c++14 -x c++-header %s -emit-pch -fpch-instantiate-templates -o %t.pch
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
5 // RUN: %clang_cc1 -std=c++14 -x c++ /dev/null -include-pch %t.pch
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
6
150
anatofuz
parents:
diff changeset
7 template <class T, T... I>
anatofuz
parents:
diff changeset
8 struct Seq {
anatofuz
parents:
diff changeset
9 static constexpr T PackSize = sizeof...(I);
anatofuz
parents:
diff changeset
10 };
anatofuz
parents:
diff changeset
11
anatofuz
parents:
diff changeset
12 template <typename T, T N>
anatofuz
parents:
diff changeset
13 using MakeSeq = __make_integer_seq<Seq, T, N>;
anatofuz
parents:
diff changeset
14
anatofuz
parents:
diff changeset
15 void fn1() {
anatofuz
parents:
diff changeset
16 MakeSeq<int, 3> x;
anatofuz
parents:
diff changeset
17 }