blob: 10806f107b4ee9d5b431a7295c68722017eb8364 [file] [log] [blame]
// RUN: %clang_cc1 -fsyntax-only -verify -Wno-unused-value -std=c++20 %s
// expected-no-diagnostics
namespace GH64347 {
template<typename X, typename Y> struct A { X x; Y y;};
void test() {
A(1, 2);
new A(1, 2);
}
template<A a>
void f() { (void)a; }
void k() {
// Test CTAD works for non-type template arguments.
f<A(0, 0)>();
}
} // namespace GH64347