xref: /llvm-project/clang/test/SemaCXX/libstdcxx_is_nothrow_convertible_hack.cpp (revision 05a6cb208635a54fb63622f13420e4d8549e5ba1)
1 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fsyntax-only -verify -std=gnu++20 -fms-extensions -Wno-microsoft %s
2 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fsyntax-only -verify -std=gnu++23 -fms-extensions -Wno-microsoft %s
3 
4 template <class T, class U>
5 struct Same {
6   static constexpr auto value = __is_same(T, U);
7 };
8 
9 template <class T>
10 struct __is_nothrow_convertible { // expected-warning{{keyword '__is_nothrow_convertible' will be made available as an identifier for the remainder of the translation unit}}
11   using type = T;
12 };
13 
14 using A = Same<__is_nothrow_convertible<int>::type, __is_nothrow_convertible<int>::type>;
15