1 // RUN: %clang -### -c -integrated-as %s 2>&1 | FileCheck %s 2 // CHECK: cc1as 3 // CHECK-NOT: -relax-all 4 5 // RUN: %clang -### -c -integrated-as -Wa,-L %s 2>&1 | FileCheck --check-prefix=OPT_L %s 6 // OPT_L: msave-temp-labels 7 8 // RUN: %clang -### -target x86_64-linux-gnu -c -integrated-as %s -fsanitize=address 2>&1 %s | FileCheck --check-prefix=SANITIZE %s 9 // SANITIZE: argument unused during compilation: '-fsanitize=address' 10 11 // Test that -I params in -Wa, and -Xassembler args are passed to integrated assembler 12 // RUN: %clang -### -c -integrated-as %s -Wa,-I,foo_dir 2>&1 | FileCheck --check-prefix=WA_INCLUDE1 %s 13 // WA_INCLUDE1: cc1as 14 // WA_INCLUDE1: "-I" "foo_dir" 15 16 // RUN: %clang -### -c -integrated-as %s -Wa,-Ifoo_dir 2>&1 | FileCheck --check-prefix=WA_INCLUDE2 %s 17 // WA_INCLUDE2: cc1as 18 // WA_INCLUDE2: "-Ifoo_dir" 19 20 // RUN: %clang -### -c -integrated-as %s -Wa,-I -Wa,foo_dir 2>&1 | FileCheck --check-prefix=WA_INCLUDE3 %s 21 // WA_INCLUDE3: cc1as 22 // WA_INCLUDE3: "-I" "foo_dir" 23 24 // RUN: %clang -### -c -integrated-as %s -Xassembler -I -Xassembler foo_dir 2>&1 | FileCheck --check-prefix=XA_INCLUDE1 %s 25 // XA_INCLUDE1: cc1as 26 // XA_INCLUDE1: "-I" "foo_dir" 27 28 // RUN: %clang -### -c -integrated-as %s -Xassembler -Ifoo_dir 2>&1 | FileCheck --check-prefix=XA_INCLUDE2 %s 29 // XA_INCLUDE2: cc1as 30 // XA_INCLUDE2: "-Ifoo_dir" 31 32 // RUN: %clang -### -c -integrated-as %s -gdwarf-2 2>&1 | FileCheck --check-prefix=DWARF2 %s 33 // DWARF2: "-g" "-gdwarf-2" 34 35 // RUN: %clang -### -c -integrated-as %s -gdwarf-3 2>&1 | FileCheck --check-prefix=DWARF3 %s 36 // DWARF3: "-g" "-gdwarf-3" 37 38 // RUN: %clang -### -c -integrated-as %s -gdwarf-4 2>&1 | FileCheck --check-prefix=DWARF4 %s 39 // DWARF4: "-g" "-gdwarf-4" 40 41 // RUN: %clang -### -c -integrated-as %s -Xassembler -gdwarf-2 2>&1 | FileCheck --check-prefix=DWARF2XASSEMBLER %s 42 // DWARF2XASSEMBLER: "-gdwarf-2" 43 44 // RUN: %clang -### -c -integrated-as %s -Wa,-gdwarf-2 2>&1 | FileCheck --check-prefix=DWARF2WA %s 45 // DWARF2WA: "-gdwarf-2" 46