Files
clang-p2996/clang/test/Reflection/p2996-ex-forward-and-back.cpp
2024-12-19 15:39:25 -05:00

18 lines
611 B
C++

//===----------------------------------------------------------------------===//
//
// Copyright 2024 Bloomberg Finance L.P.
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
//
// RUN: %clang_cc1 %s -std=c++23 -freflection
constexpr auto r = ^^int;
typename[:r:] x = 42; // Same as: int x = 42;
typename[:^^char:] c = '*'; // Same as: char c = '*';
int main() {}