[all-commits] [llvm/llvm-project] f09c7d: [Sema][SVE] Add tests for valid and invalid type u...

rsandifo-arm via All-commits all-commits at lists.llvm.org
Thu Mar 12 09:57:54 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: f09c7d642afa932a1e2b66bdcd15e779f8bc5d4e
      https://github.com/llvm/llvm-project/commit/f09c7d642afa932a1e2b66bdcd15e779f8bc5d4e
  Author: Richard Sandiford <richard.sandiford at arm.com>
  Date:   2020-03-12 (Thu, 12 Mar 2020)

  Changed paths:
    A clang/test/Sema/sizeless-1.c
    A clang/test/SemaCXX/sizeless-1.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list