forked from OSchip/llvm-project
PR41427: This has apparently been fixed already, just add a regression
test. llvm-svn: 359155
This commit is contained in:
parent
83e52142d1
commit
964f935e33
|
@ -0,0 +1,17 @@
|
|||
// RUN: %clang_cc1 -std=c++17 -verify %s
|
||||
|
||||
// expected-no-diagnostics
|
||||
namespace pr41427 {
|
||||
template <typename T> class A {
|
||||
public:
|
||||
A(void (*)(T)) {}
|
||||
};
|
||||
|
||||
void D(int) {}
|
||||
|
||||
void f() {
|
||||
A a(&D);
|
||||
using T = decltype(a);
|
||||
using T = A<int>;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue