Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / SemaCXX / ctad.cpp
blob10806f107b4ee9d5b431a7295c68722017eb8364
1 // RUN: %clang_cc1 -fsyntax-only -verify -Wno-unused-value -std=c++20 %s
2 // expected-no-diagnostics
4 namespace GH64347 {
6 template<typename X, typename Y> struct A { X x; Y y;};
7 void test() {
8 A(1, 2);
9 new A(1, 2);
12 template<A a>
13 void f() { (void)a; }
14 void k() {
15 // Test CTAD works for non-type template arguments.
16 f<A(0, 0)>();
19 } // namespace GH64347