[all-commits] [llvm/llvm-project] 78d0d5: Add some additional comments to this test; NFC

Aaron Ballman via All-commits all-commits at lists.llvm.org
Wed Apr 5 10:15:51 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 78d0d59209bf858435bcd19046e94fce0386ace8
      https://github.com/llvm/llvm-project/commit/78d0d59209bf858435bcd19046e94fce0386ace8
  Author: Aaron Ballman <aaron at aaronballman.com>
  Date:   2023-04-05 (Wed, 05 Apr 2023)

  Changed paths:
    M clang/test/C/C2x/n2900_n3011.c

  Log Message:
  -----------
  Add some additional comments to this test; NFC

It isn't immediately obvious why that code should be accepted given the
wording of C2x 6.7.10p4, so this adds a comment explaining that there
is an existing extension to support zero-sized arrays in C, and that
empty initialization of an unbounded array in C++ deduces the array
extent as zero, so C is exposing the same extension as in C++.




More information about the All-commits mailing list