[CodeGenCXX] Add test for forward declare as array elem (NFC)
authorNikita Popov <npopov@redhat.com>
Thu, 13 Jul 2023 12:24:45 +0000 (14:24 +0200)
committerNikita Popov <npopov@redhat.com>
Thu, 13 Jul 2023 12:26:25 +0000 (14:26 +0200)
commite98cbb95b8b96d3908a808bbcd639680a5197428
treedc60f80e8c81abe56299bff1ad07daf1c510813b
parentddbd8ffe314bf121c7e488de1b510dea5ecc8b42
[CodeGenCXX] Add test for forward declare as array elem (NFC)

To guard against the miscompile that D153142 would have introduced.
clang/test/CodeGenCXX/forward-declare-as-array-elem.cpp [new file with mode: 0644]