Skip to content

Commit

Permalink
Add tests for GH105885
Browse files Browse the repository at this point in the history
  • Loading branch information
zyn0217 committed Aug 26, 2024
1 parent 68186d4 commit 4462adb
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion clang/test/SemaTemplate/alias-template-with-lambdas.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,16 @@ using broken4 = decltype(Pred.template operator()<42>(Pred));

broken4<non_default>* boom4;

}
} // namespace GH89853

namespace GH105885 {

template<int>
using test = decltype([](auto...) {
}());

static_assert(__is_same(test<0>, void));

} // namespace GH105885

} // namespace lambda_calls

0 comments on commit 4462adb

Please sign in to comment.