llvm-project/clang/test/Misc/serialized-diags-unknown-target.c
Fangrui Song ea7e69f392 [Driver] Drop incorrect hint from err_target_unknown_triple
For an unknown target triple, the ", please use -triple or -arch" hint of the
diagnostic is almost always wrong.
For cc1, the error is due to a specified but unknown -triple.
For driver, -triple and -arch are not driver options.
2023-05-01 18:22:49 -07:00

5 lines
221 B
C

// RUN: rm -rf %t && mkdir %t
// RUN: not %clang_cc1 %s -triple blah-unknown-unknown -serialize-diagnostic-file %t/diag -o /dev/null 2>&1 | FileCheck %s
// CHECK: error: unknown target triple 'blah-unknown-unknown'{{$}}