brintos

brintos / llvm-project-archived public Read only

0
0
Text · 665 B · 4f70e9f Raw
21 lines · cpp
1//===----------------------------------------------------------------------===//2//3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.4// See https://llvm.org/LICENSE.txt for license information.5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception6//7//===----------------------------------------------------------------------===//8 9// <utility>10 11// template <class T1, class T2> struct pair12 13// tuple_element<I, pair<T1, T2> >::type14 15#include <utility>16 17void f() {18  typedef std::pair<int, short> T;19  std::tuple_element<2, T>::type foo; // expected-error@*:* {{Index out of bounds in std::tuple_element<std::pair<T1, T2>>}}20}21