llvm-project/clang/test/Driver/immediate-options.c
Fangrui Song 0953fb4c68 [Driver] Ensure -W<warning> gets HelpHidden
Individual groups should not be displayed in --help. Fix two violations
and change the test to prevent regression.
2024-07-28 20:21:59 -07:00

17 lines
487 B
C

// RUN: %clang --help | FileCheck %s -check-prefix=HELP
// HELP: isystem
// HELP-NOT: ast-dump
// HELP-NOT: driver-mode
// HELP: -Wa,
// HELP-NOT: -W{{[a-z][a-z]}}
// Make sure that Flang-only options are not available in Clang
// HELP-NOT: test-io
// RUN: %clang --help-hidden | FileCheck %s -check-prefix=HELP-HIDDEN
// HELP-HIDDEN: driver-mode
// HELP-HIDDEN-NOT: test-io
// RUN: %clang -dumpversion | FileCheck %s -check-prefix=DUMPVERSION
// DUMPVERSION: {{[0-9]+\.[0-9.]+}}