c++: Add testcase for DR 2392
The testcase from DR 2392 passes, so I assume we don't need to do anything further for the DR. 2022-11-15 Jakub Jelinek <jakub@redhat.com> * g++.dg/DRs/dr2392.C: Add testcase for DR 2392.
This commit is contained in:
parent
6492cec069
commit
7cf165de63
1 changed files with 12 additions and 0 deletions
12
gcc/testsuite/g++.dg/DRs/dr2392.C
Normal file
12
gcc/testsuite/g++.dg/DRs/dr2392.C
Normal file
|
@ -0,0 +1,12 @@
|
|||
// DR 2392
|
||||
// { dg-do compile { target c++11 } }
|
||||
|
||||
template <class T = void>
|
||||
constexpr int
|
||||
foo ()
|
||||
{
|
||||
T t;
|
||||
return 1;
|
||||
}
|
||||
|
||||
using V = decltype (new int[foo ()]);
|
Loading…
Add table
Reference in a new issue