================ @@ -0,0 +1,15 @@ +// Test for the Triple constructor ambiguity fix on AIX +// This test verifies that the default target triple is correctly resolved +// and doesn't fall back to "unknown" due to constructor ambiguity. + +// REQUIRES: system-aix +// RUN: %clang -v %s -c 2>&1 | FileCheck %s --check-prefix=CHECK-TARGET + +// Test that the target triple contains AIX and is not "unknown" +// The target should be something like "powerpc-ibm-aix7.3.0.0" +// CHECK-TARGET: Target: {{.*}}aix{{.*}} +// CHECK-TARGET-NOT: error: unknown target triple 'unknown' ---------------- arsenm wrote:
```suggestion ``` Negative checks of error messages are far too brittle, just rely on it not erroring? https://github.com/llvm/llvm-project/pull/147488 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits