[Sema][SVE] Add tests for valid and invalid type usage
authorRichard Sandiford <richard.sandiford@arm.com>
Fri, 21 Feb 2020 14:55:28 +0000 (14:55 +0000)
committerRichard Sandiford <richard.sandiford@arm.com>
Thu, 12 Mar 2020 16:56:13 +0000 (16:56 +0000)
commitf09c7d642afa932a1e2b66bdcd15e779f8bc5d4e
tree0d4a9768c4f0f42ae223238283dd10bcc74bb125
parent7bfc3bf39b6d279657b480963e72b6c08191b2f2
[Sema][SVE] Add tests for valid and invalid type usage

This patch adds C and C++ tests for various uses of SVE types.
The tests cover valid uses that are already (correctly) accepted and
invalid uses that are already (correctly) rejected.  Later patches
will expand the tests as they fix other cases.[*]

Some of the tests for invalid uses aren't obviously related to
scalable vectors.  Part of the reason for having them is to make
sure that the quality of the error message doesn't regress once/if
the types are treated as incomplete types.

[*] These later patches all fix invalid uses that are being incorrectly
    accepted.  I don't know of any cases in which valid uses are being
    incorrectly rejected.  In other words, this series is all about
    diagnosing invalid code rather than enabling something new.

Differential Revision: https://reviews.llvm.org/D75571
clang/test/Sema/sizeless-1.c [new file with mode: 0644]
clang/test/SemaCXX/sizeless-1.cpp [new file with mode: 0644]