diff --git a/clang/test/SemaCXX/source_location.cpp b/clang/test/SemaCXX/source_location.cpp index c8b65d6eab50d..eaa6cb04c5d1c 100644 --- a/clang/test/SemaCXX/source_location.cpp +++ b/clang/test/SemaCXX/source_location.cpp @@ -1081,3 +1081,13 @@ static_assert(X{}. static_assert(X{}. foo() == 10001); } + +#ifdef MS +namespace GH178324 { + struct a { + using e = int; + }; + void current(const char * = __builtin_FUNCSIG()); + template void c() { decltype(a(current()))::e; } +} // namespace GH178324 +#endif