llvm-project/clang/test/SemaTemplate/ctad.cpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
264 B
C++
Raw Normal View History

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