llvm-project/clang/test/Driver/print-target-triple.c
Louis Dionne 731264b0c2 [clang][NFC] Fix location of 2>&1 in a few -print tests
While it's apparently valid to place Bash redirections anywhere in a
command-line, it is by far most frequently placed last. This changes
a few tests that did not conform to this convention and which I
originally thought were wrong.

Differential Revision: https://reviews.llvm.org/D146155
2023-03-25 15:57:20 -04:00

7 lines
201 B
C

// Test that -print-target-triple prints correct triple.
// RUN: %clang -print-target-triple \
// RUN: --target=x86_64-linux-gnu 2>&1 \
// RUN: | FileCheck %s
// CHECK: x86_64-unknown-linux-gnu