You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
259 B

// 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 );
}