Changeset View
Changeset View
Standalone View
Standalone View
clang/test/Driver/integrated-as.s
Show All 21 Lines | |||||
// XA_INCLUDE1: cc1as | // XA_INCLUDE1: cc1as | ||||
// XA_INCLUDE1: "-I" "foo_dir" | // XA_INCLUDE1: "-I" "foo_dir" | ||||
// RUN: %clang -### -target x86_64--- -c -integrated-as %s -Xassembler -Ifoo_dir 2>&1 | FileCheck --check-prefix=XA_INCLUDE2 %s | // RUN: %clang -### -target x86_64--- -c -integrated-as %s -Xassembler -Ifoo_dir 2>&1 | FileCheck --check-prefix=XA_INCLUDE2 %s | ||||
// XA_INCLUDE2: cc1as | // XA_INCLUDE2: cc1as | ||||
// XA_INCLUDE2: "-Ifoo_dir" | // XA_INCLUDE2: "-Ifoo_dir" | ||||
// RUN: %clang -### -target x86_64--- -c -integrated-as %s -gdwarf-4 -gdwarf-2 2>&1 | FileCheck --check-prefix=DWARF2 %s | // RUN: %clang -### -target x86_64--- -c -integrated-as %s -gdwarf-4 -gdwarf-2 2>&1 | FileCheck --check-prefix=DWARF2 %s | ||||
// DWARF2: "-debug-info-kind=limited" "-dwarf-version=2" | // DWARF2: "-debug-info-kind=constructor" "-dwarf-version=2" | ||||
// RUN: %clang -### -target x86_64--- -c -integrated-as %s -gdwarf-3 2>&1 | FileCheck --check-prefix=DWARF3 %s | // RUN: %clang -### -target x86_64--- -c -integrated-as %s -gdwarf-3 2>&1 | FileCheck --check-prefix=DWARF3 %s | ||||
// DWARF3: "-debug-info-kind=limited" "-dwarf-version=3" | // DWARF3: "-debug-info-kind=constructor" "-dwarf-version=3" | ||||
// RUN: %clang -### -target x86_64--- -c -integrated-as %s -gdwarf-4 2>&1 | FileCheck --check-prefix=DWARF4 %s | // RUN: %clang -### -target x86_64--- -c -integrated-as %s -gdwarf-4 2>&1 | FileCheck --check-prefix=DWARF4 %s | ||||
// DWARF4: "-debug-info-kind=limited" "-dwarf-version=4" | // DWARF4: "-debug-info-kind=constructor" "-dwarf-version=4" | ||||
// RUN: %clang -### -target x86_64--- -c -integrated-as %s -Xassembler -gdwarf-2 2>&1 | FileCheck --check-prefix=DWARF2XASSEMBLER %s | // RUN: %clang -### -target x86_64--- -c -integrated-as %s -Xassembler -gdwarf-2 2>&1 | FileCheck --check-prefix=DWARF2XASSEMBLER %s | ||||
// DWARF2XASSEMBLER: "-debug-info-kind=limited" "-dwarf-version=2" | // DWARF2XASSEMBLER: "-debug-info-kind=constructor" "-dwarf-version=2" | ||||
// RUN: %clang -### -target x86_64--- -c -integrated-as %s -Wa,-gdwarf-2 2>&1 | FileCheck --check-prefix=DWARF2WA %s | // RUN: %clang -### -target x86_64--- -c -integrated-as %s -Wa,-gdwarf-2 2>&1 | FileCheck --check-prefix=DWARF2WA %s | ||||
// DWARF2WA: "-debug-info-kind=limited" "-dwarf-version=2" | // DWARF2WA: "-debug-info-kind=constructor" "-dwarf-version=2" | ||||
// A dwarf version number that driver can't parse is just stuffed in. | // A dwarf version number that driver can't parse is just stuffed in. | ||||
// RUN: %clang -### -target x86_64--- -c -integrated-as %s -Wa,-gdwarf-huh 2>&1 | FileCheck --check-prefix=BOGODWARF %s | // RUN: %clang -### -target x86_64--- -c -integrated-as %s -Wa,-gdwarf-huh 2>&1 | FileCheck --check-prefix=BOGODWARF %s | ||||
// BOGODWARF: "-gdwarf-huh" | // BOGODWARF: "-gdwarf-huh" | ||||
// RUN: %clang -### -target x86_64--- -x assembler -c -integrated-as %s -I myincludedir 2>&1 | FileCheck --check-prefix=INCLUDEPATH %s | // RUN: %clang -### -target x86_64--- -x assembler -c -integrated-as %s -I myincludedir 2>&1 | FileCheck --check-prefix=INCLUDEPATH %s | ||||
// INCLUDEPATH: "-I" "myincludedir" | // INCLUDEPATH: "-I" "myincludedir" | ||||
Show All 10 Lines |