13 lines · c
1/// Test that -dumpmachine prints the target triple.2 3/// Note: Debian GCC may omit "unknown-".4// RUN: %clang --target=x86_64-linux-gnu -dumpmachine | FileCheck %s --check-prefix=X86_645// X86_64: x86_64-unknown-linux-gnu6 7/// Note: GCC doesn't convert -dumpmachine output for multilib -m32/-mx32/-m64.8// RUN: %clang --target=x86_64-redhat-linux -m32 -dumpmachine | FileCheck %s --check-prefix=X86_64_M329// X86_64_M32: i386-redhat-linux10 11// RUN: %clang --target=xxx-pc-freebsd -dumpmachine | FileCheck %s --check-prefix=FREEBSD12// FREEBSD: xxx-pc-freebsd13