[AMDGPU][True16][CodeGen] true16 codegen pattern for v_med3_u/i16 (#121850)
[llvm-project.git] / clang / test / CodeGenCXX / ms-uneval-context-crash.cpp
blobb2f7e58381da8155ee6cf944d57d1c42961d89fd
1 // RUN: %clang_cc1 -std=c++20 -fms-compatibility -fms-compatibility-version=19.33 -emit-llvm %s -o - -triple=x86_64-windows-msvc | FileCheck %s
3 template <typename T>
4 concept C = requires
6 { T::test([](){}) };
7 };
9 template<typename T>
10 struct Widget {};
12 template <C T>
13 struct Widget<T> {};
15 struct Baz
17 template<typename F>
18 static constexpr decltype(auto) test(F&&) {}
21 void test()
23 Widget<Baz> w;
25 // CHECK: @"?test@@YAXXZ"