Changeset View
Changeset View
Standalone View
Standalone View
clang/test/Driver/target-override.c
// REQUIRES: shell | // REQUIRES: shell | ||||
// REQUIRES: x86-registered-target | // REQUIRES: x86-registered-target | ||||
// RUN: rm -rf %T/testbin | // RUN: rm -rf %T/testbin | ||||
// RUN: mkdir -p %T/testbin | // RUN: mkdir -p %T/testbin | ||||
// RUN: ln -s %clang %T/testbin/i386-clang | // RUN: ln -s %clang_bin %T/testbin/i386-clang | ||||
// Check if invocation of "foo-clang" adds option "-target foo". | // Check if invocation of "foo-clang" adds option "-target foo". | ||||
// | // | ||||
// RUN: %T/testbin/i386-clang -c -no-canonical-prefixes %s -### 2>&1 | FileCheck -check-prefix CHECK-TG1 %s | // RUN: %T/testbin/i386-clang -c -no-canonical-prefixes %s -### 2>&1 | FileCheck -check-prefix CHECK-TG1 %s | ||||
// CHECK-TG1: Target: i386 | // CHECK-TG1: Target: i386 | ||||
// Check if invocation of "foo-clang -target bar" overrides option "-target foo". | // Check if invocation of "foo-clang -target bar" overrides option "-target foo". | ||||
// | // | ||||
// RUN: %T/testbin/i386-clang -c -no-canonical-prefixes -target x86_64 %s -### 2>&1 | FileCheck -check-prefix CHECK-TG2 %s | // RUN: %T/testbin/i386-clang -c -no-canonical-prefixes -target x86_64 %s -### 2>&1 | FileCheck -check-prefix CHECK-TG2 %s | ||||
// CHECK-TG2: Target: x86_64 | // CHECK-TG2: Target: x86_64 |