llvm-project/clang/test/Sema/tentative-array-decl.c
Aaron Ballman 5278594d7e Add a diagnostic group for tentative array definitions
This diagnostic is one of the ones that GCC also does not have a
warning group for, but a user requested adding a group to control
selectively turning off this diagnostic. So this adds the diagnostic
to a new group, -Wtentative-definition-array

Fixes #87766
2024-04-09 10:40:08 -04:00

6 lines
211 B
C

// RUN: %clang_cc1 -verify %s
// RUN: %clang_cc1 -verify=good -Wno-tentative-definition-array %s
// good-no-diagnostics
int foo[]; // expected-warning {{tentative array definition assumed to have one element}}