testsuite: Add test for C90 auto with implicit int
authorJoseph Myers <joseph@codesourcery.com>
Wed, 7 Dec 2022 19:24:45 +0000 (19:24 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Wed, 7 Dec 2022 19:24:45 +0000 (19:24 +0000)
commitdc02d4a99a7073dbef193c93529f2e1b64addfe2
tree78e261fa6a989a779d8577cee9d52a93b1d386f9
parentce53cf7b61ea6bce05570e2fd1f8c10eee308ab0
testsuite: Add test for C90 auto with implicit int

Add a test for the case of auto with implicit int in C90 mode, which
is incompatible with C2x semantics (I missed adding such a test when
implementing C2x auto).

Tested for x86_64-pc-linux-gnu.

* gcc.dg/c90-auto-1.c: New test.
gcc/testsuite/gcc.dg/c90-auto-1.c [new file with mode: 0644]