]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: Add test for C++23 auto(x)
authorMarek Polacek <polacek@redhat.com>
Fri, 10 Dec 2021 18:07:19 +0000 (13:07 -0500)
committerMarek Polacek <polacek@redhat.com>
Fri, 10 Dec 2021 18:09:13 +0000 (13:09 -0500)
commit0df964ba2875063bb14ddd9d55fec5b1e862c90b
treee44fc4bfe4ecf51535f3f6f404a7663b3adb7212
parentbb6a1ebb8585b85879735d0d6df9535885fad165
c++: Add test for C++23 auto(x)

I was curious if our auto(x) works in contexts like bit-field width
and similar.  It appears that it does.  Might be worth adding a test
for it.

gcc/testsuite/ChangeLog:

* g++.dg/cpp23/auto-fncast10.C: New test.
gcc/testsuite/g++.dg/cpp23/auto-fncast10.C [new file with mode: 0644]