Mercurial > hg > CbC > CbC_llvm
view 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 (2021-07-18) |
parents | 79ff65ed7e25 |
children |
line wrap: on
line source
// RUN: %clang_cc1 -std=c++14 -x c++-header %s -emit-pch -o %t.pch // RUN: %clang_cc1 -std=c++14 -x c++ /dev/null -include-pch %t.pch // RUN: %clang_cc1 -std=c++14 -x c++-header %s -emit-pch -fpch-instantiate-templates -o %t.pch // RUN: %clang_cc1 -std=c++14 -x c++ /dev/null -include-pch %t.pch template <class T, T... I> struct Seq { static constexpr T PackSize = sizeof...(I); }; template <typename T, T N> using MakeSeq = __make_integer_seq<Seq, T, N>; void fn1() { MakeSeq<int, 3> x; }