repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git]
/
clang
/
test
/
SemaCXX
/
ctad.cpp
blob
10806f107b4ee9d5b431a7295c68722017eb8364
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
;};
7
void
test
() {
8
A
(
1
,
2
);
9
new
A
(
1
,
2
);
10
}
11
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
)>();
17
}
18
19
}
// namespace GH64347