mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-26 05:06:06 +00:00

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
6 lines
211 B
C
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}}
|