brintos

brintos / llvm-project-archived public Read only

0
0
Text · 498 B · 9b8c09c Raw
17 lines · cpp
1// RUN: %clang_cc1 -fsyntax-only -std=c++11 %s2 3template <class> struct Pair;4template <class...> struct Tuple {5  template <class _Up> Tuple(_Up);6};7template <typename> struct StatusOr;8template <int> using ElementType = int;9template <int... fields>10using Key = Tuple<ElementType<fields>...>;11template <int... fields>12StatusOr<Pair<Key<fields...>>> Parser();13struct Helper { Helper(Tuple<>, Tuple<>, int, int); };14struct D : Helper {15  D(Key<> f, int n, int e) : Helper(f, Parser<>, n, e) {}16};17