Sign in
llvm
/
clang
/
7d0e090bbc61baebf0be18e4d9ba36615b6cd566
/
.
/
test
/
SemaCXX
/
PR41139.cpp
blob: e120e42b8b5fbcaa2e95e58879cc6a8b28691c61 [
file
] [
log
] [
blame
]
// RUN: %clang_cc1 -fsyntax-only -std=c++17 -verify %s
// expected-no-diagnostics
// This test should not crash.
int
f1
(
unsigned
)
{
return
0
;
}
template
<
class
R
,
class
...
Args
>
struct
S1
{
S1
(
R
(*
f
)(
Args
...)
)
{}
};
int
main
()
{
S1 s1
(
f1
);
}