brintos

brintos / llvm-project-archived public Read only

0
0
Text · 739 B · fad333e Raw
20 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// <array>10 11// tuple_element<I, array<T, N> >::type12 13#include <array>14#include <cassert>15 16typedef double T;17typedef std::array<T, 3> C;18std::tuple_element<3, C> foo; // expected-note {{requested here}}19// expected-error-re@*:* {{static assertion failed{{( due to requirement '3U[L]{0,2} < 3U[L]{0,2}')?}}{{.*}}Index out of bounds in std::tuple_element<> (std::array)}}20