16 lines · cpp
1// RUN: %clang_cc1 -fsyntax-only -std=c++17 -verify %s2 3// expected-no-diagnostics4 5// This test should not crash.6int f1( unsigned ) { return 0; }7 8template <class R, class... Args>9struct S1 {10 S1( R(*f)(Args...) ) {}11};12 13int main() {14 S1 s1( f1 );15}16