| 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-exception |
| 6 |
// |
| 7 |
//===----------------------------------------------------------------------===// |
| 8 |
|
| 9 |
// Check that instantiating pair doesn't look up type traits "too early", before |
| 10 |
// the contained types have been completed. |
| 11 |
// |
| 12 |
// This is a regression test, to prevent a reoccurrance of the issue introduced |
| 13 |
// in 5e1de27f680591a870d78e9952b23f76aed7f456. |
| 14 |
|
| 15 |
#include <utility> |
| 16 |
#include <vector> |
| 17 |
|
| 18 |
struct Test { |
| 19 |
std::vector<std::pair<int, Test> > v; |
| 20 |
}; |
| 21 |
|
| 22 |
std::pair<int, Test> p; |