Serge Pavlov | 3b7d381 | 2017-09-20 15:22:27 +0000 | [diff] [blame] | 1 | // REQUIRES: shell |
| 2 | // REQUIRES: x86-registered-target |
| 3 | |
| 4 | // RUN: mkdir -p %T/testbin |
| 5 | // RUN: [ ! -s %T/testbin/i386-clang ] || rm %T/testbin/i386-clang |
| 6 | // RUN: ln -s %clang %T/testbin/i386-clang |
| 7 | |
| 8 | // Check if invocation of "foo-clang" adds option "-target foo". |
| 9 | // |
| 10 | // RUN: %T/testbin/i386-clang -c -no-canonical-prefixes %s -### 2>&1 | FileCheck -check-prefix CHECK-TG1 %s |
| 11 | // CHECK-TG1: Target: i386 |
| 12 | |
| 13 | // Check if invocation of "foo-clang -target bar" overrides option "-target foo". |
| 14 | // |
| 15 | // RUN: %T/testbin/i386-clang -c -no-canonical-prefixes -target x86_64 %s -### 2>&1 | FileCheck -check-prefix CHECK-TG2 %s |
| 16 | // CHECK-TG2: Target: x86_64 |