Debian Codegraph @

clang/test/Driver/aix-default-target-triple.c

raw
1 // Test for the Triple constructor ambiguity fix on AIX
2 // This test verifies that the default target triple is correctly resolved
3 // and doesn't fall back to "unknown" due to constructor ambiguity.
4
5 // REQUIRES: system-aix, target={{.*}}-aix{{.*}}
6 // RUN: %clang -v %s -c 2>&1 | FileCheck %s --check-prefix=CHECK-TARGET
7
8 // Test that the target triple contains AIX and is not "unknown"
9 // The target should be something like "powerpc-ibm-aix7.3.0.0"
10 // CHECK-TARGET: Target: {{.*}}-aix{{.*}}
11
12 int main() {
13 return 0;
14 }