[compiler-rt] [clang-cl] Fix value of __FUNCTION__ in MSVC mode. (PR #67592)
Aaron Ballman via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 2 08:58:40 PDT 2023
================
@@ -463,8 +470,73 @@ void ctor_tests() {
constexpr SL global_sl = SL::current();
static_assert(is_equal(global_sl.function(), ""));
+template <class T>
+class TestBI {
+public:
+ TestBI() {
+#ifdef MS
+ static_assert(is_equal(__FUNCTION__, "test_func::TestBI<int>::TestBI"));
+ static_assert(is_equal(__func__, "TestBI"));
+#else
+ static_assert(is_equal(__func__, "TestBI"));
----------------
AaronBallman wrote:
I assume that for all of these, you intend to test `__FUNCTION__` and `__func__`, not `__func__` twice.
https://github.com/llvm/llvm-project/pull/67592
More information about the llvm-commits
mailing list