diff options
Diffstat (limited to 'test/PCH/make-integer-seq.cpp')
-rw-r--r-- | test/PCH/make-integer-seq.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/PCH/make-integer-seq.cpp b/test/PCH/make-integer-seq.cpp new file mode 100644 index 0000000..3622c33 --- /dev/null +++ b/test/PCH/make-integer-seq.cpp @@ -0,0 +1,14 @@ +// 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 + +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; +} |