brintos

brintos / llvm-project-archived public Read only

0
0
Text · 448 B · b2f7e58 Raw
26 lines · cpp
1// RUN: %clang_cc1 -std=c++20 -fms-compatibility -fms-compatibility-version=19.33 -emit-llvm %s -o - -triple=x86_64-windows-msvc | FileCheck %s2 3template <typename T>4concept C = requires5{6    { T::test([](){}) };7};8 9template<typename T>10struct Widget {};11 12template <C T>13struct Widget<T> {};14 15struct Baz16{17    template<typename F>18    static constexpr decltype(auto) test(F&&) {}19};20 21void test()22{23    Widget<Baz> w;24}25// CHECK: @"?test@@YAXXZ"26