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// Regression test for https://llvm.org/PR2737510 11// UNSUPPORTED: c++0312 13#include <tuple>14 15int main(int, char**) {16 std::tuple<int&>(std::tuple<int&&>(42));17 18 return 0;19}20