unknown-arg.c 381 B

123456789
  1. // RUN: not %clang_cc1 %s -E --helium 2>&1 | \
  2. // RUN: FileCheck %s
  3. // RUN: not %clang_cc1 %s -E --hel[ 2>&1 | \
  4. // RUN: FileCheck %s --check-prefix=DID-YOU-MEAN
  5. // RUN: not %clang %s -E -Xclang --hel[ 2>&1 | \
  6. // RUN: FileCheck %s --check-prefix=DID-YOU-MEAN
  7. // CHECK: error: unknown argument: '--helium'
  8. // DID-YOU-MEAN: error: unknown argument '--hel['; did you mean '--help'?