Mercurial > hg > CbC > CbC_llvm
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 |
rev | line source |
---|---|
150 | 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 | |
3 | |
221 | 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 | |
6 | |
150 | 7 template <class T, T... I> |
8 struct Seq { | |
9 static constexpr T PackSize = sizeof...(I); | |
10 }; | |
11 | |
12 template <typename T, T N> | |
13 using MakeSeq = __make_integer_seq<Seq, T, N>; | |
14 | |
15 void fn1() { | |
16 MakeSeq<int, 3> x; | |
17 } |