Skip to content

Commit 4462adb

Browse files
committed
Add tests for GH105885
1 parent 68186d4 commit 4462adb

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

clang/test/SemaTemplate/alias-template-with-lambdas.cpp

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,16 @@ using broken4 = decltype(Pred.template operator()<42>(Pred));
145145

146146
broken4<non_default>* boom4;
147147

148-
}
148+
} // namespace GH89853
149+
150+
namespace GH105885 {
151+
152+
template<int>
153+
using test = decltype([](auto...) {
154+
}());
155+
156+
static_assert(__is_same(test<0>, void));
157+
158+
} // namespace GH105885
149159

150160
} // namespace lambda_calls

0 commit comments

Comments
 (0)