diff options
Diffstat (limited to 'test/Driver/integrated-as.s')
-rw-r--r-- | test/Driver/integrated-as.s | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/test/Driver/integrated-as.s b/test/Driver/integrated-as.s index 181f790..5316f52 100644 --- a/test/Driver/integrated-as.s +++ b/test/Driver/integrated-as.s @@ -5,9 +5,6 @@ // RUN: %clang -### -c -integrated-as -Wa,-L %s 2>&1 | FileCheck --check-prefix=OPT_L %s // OPT_L: msave-temp-labels -// RUN: %clang -### -target x86_64-linux-gnu -c -integrated-as %s -fsanitize=address 2>&1 %s | FileCheck --check-prefix=SANITIZE %s -// SANITIZE: argument unused during compilation: '-fsanitize=address' - // Test that -I params in -Wa, and -Xassembler args are passed to integrated assembler // RUN: %clang -### -c -integrated-as %s -Wa,-I,foo_dir 2>&1 | FileCheck --check-prefix=WA_INCLUDE1 %s // WA_INCLUDE1: cc1as @@ -29,20 +26,27 @@ // XA_INCLUDE2: cc1as // XA_INCLUDE2: "-Ifoo_dir" -// RUN: %clang -### -c -integrated-as %s -gdwarf-2 2>&1 | FileCheck --check-prefix=DWARF2 %s -// DWARF2: "-g" "-gdwarf-2" +// RUN: %clang -### -c -integrated-as %s -gdwarf-4 -gdwarf-2 2>&1 | FileCheck --check-prefix=DWARF2 %s +// DWARF2: "-debug-info-kind=limited" "-dwarf-version=2" // RUN: %clang -### -c -integrated-as %s -gdwarf-3 2>&1 | FileCheck --check-prefix=DWARF3 %s -// DWARF3: "-g" "-gdwarf-3" +// DWARF3: "-debug-info-kind=limited" "-dwarf-version=3" // RUN: %clang -### -c -integrated-as %s -gdwarf-4 2>&1 | FileCheck --check-prefix=DWARF4 %s -// DWARF4: "-g" "-gdwarf-4" +// DWARF4: "-debug-info-kind=limited" "-dwarf-version=4" // RUN: %clang -### -c -integrated-as %s -Xassembler -gdwarf-2 2>&1 | FileCheck --check-prefix=DWARF2XASSEMBLER %s -// DWARF2XASSEMBLER: "-gdwarf-2" +// DWARF2XASSEMBLER: "-debug-info-kind=limited" "-dwarf-version=2" // RUN: %clang -### -c -integrated-as %s -Wa,-gdwarf-2 2>&1 | FileCheck --check-prefix=DWARF2WA %s -// DWARF2WA: "-gdwarf-2" +// DWARF2WA: "-debug-info-kind=limited" "-dwarf-version=2" + +// A dwarf version number that driver can't parse is just stuffed in. +// RUN: %clang -### -c -integrated-as %s -Wa,-gdwarf-huh 2>&1 | FileCheck --check-prefix=BOGODWARF %s +// BOGODWARF: "-gdwarf-huh" // RUN: %clang -### -x assembler -c -integrated-as %s -I myincludedir 2>&1 | FileCheck --check-prefix=INCLUDEPATH %s // INCLUDEPATH: "-I" "myincludedir" + +// RUN: %clang -### -x assembler -c -fPIC -integrated-as %s 2>&1 | FileCheck --check-prefix=PIC %s +// PIC: "-mrelocation-model" "pic" |