brintos

brintos / llvm-project-archived public Read only

0
0
Text · 747 B · 16ee000 Raw
23 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// Check that instantiating pair doesn't look up type traits "too early", before10// the contained types have been completed.11//12// This is a regression test, to prevent a reoccurrance of the issue introduced13// in 5e1de27f680591a870d78e9952b23f76aed7f456.14 15#include <utility>16#include <vector>17 18struct Test {19  std::vector<std::pair<int, Test> > v;20};21 22std::pair<int, Test> p;23