1 // RUN: %clang_cc1 -fsyntax-only -verify -Wno-unused-value -std=c++20 %s 2 // expected-no-diagnostics 3 4 namespace GH64347 { 5 6 template<typename X, typename Y> struct A { X x; Y y;}; test()7void test() { 8 A(1, 2); 9 new A(1, 2); 10 } 11 12 template<A a> f()13void f() { (void)a; } k()14void k() { 15 // Test CTAD works for non-type template arguments. 16 f<A(0, 0)>(); 17 } 18 19 } // namespace GH64347 20