Renato Golin | a74bbc7 | 2015-07-22 15:32:36 +0000 | [diff] [blame] | 1 | // PR21000: Test that -I is passed to both external and integrated assemblers. |
| 2 | |
| 3 | // RUN: %clang -target x86_64-linux-gnu -c -no-integrated-as %s \ |
| 4 | // RUN: -Ifoo_dir -### 2>&1 \ |
| 5 | // RUN: | FileCheck %s |
| 6 | |
| 7 | // RUN: %clang -target x86_64-linux-gnu -c -no-integrated-as %s \ |
| 8 | // RUN: -I foo_dir -### 2>&1 \ |
| 9 | // RUN: | FileCheck %s |
| 10 | |
| 11 | // RUN: %clang -target x86_64-linux-gnu -c -integrated-as %s \ |
| 12 | // RUN: -Ifoo_dir -### 2>&1 \ |
| 13 | // RUN: | FileCheck %s |
| 14 | |
| 15 | // RUN: %clang -target x86_64-linux-gnu -c -integrated-as %s \ |
| 16 | // RUN: -I foo_dir -### 2>&1 \ |
| 17 | // RUN: | FileCheck %s |
| 18 | |
| 19 | // Other GNU targets |
| 20 | |
| 21 | // RUN: %clang -target aarch64-linux-gnu -c -no-integrated-as %s \ |
| 22 | // RUN: -Ifoo_dir -### 2>&1 \ |
| 23 | // RUN: | FileCheck %s |
| 24 | |
| 25 | // RUN: %clang -target aarch64-linux-gnu -c -integrated-as %s \ |
| 26 | // RUN: -Ifoo_dir -### 2>&1 \ |
| 27 | // RUN: | FileCheck %s |
| 28 | |
| 29 | // RUN: %clang -target armv7-linux-gnueabihf -c -no-integrated-as %s \ |
| 30 | // RUN: -Ifoo_dir -### 2>&1 \ |
| 31 | // RUN: | FileCheck %s |
| 32 | |
| 33 | // RUN: %clang -target armv7-linux-gnueabihf -c -integrated-as %s \ |
| 34 | // RUN: -Ifoo_dir -### 2>&1 \ |
| 35 | // RUN: | FileCheck %s |
| 36 | |
| 37 | // CHECK: "-I" "foo_dir" |