Changeset View
Changeset View
Standalone View
Standalone View
clang/test/Driver/clang-g-opts.c
Show All 25 Lines | |||||
// RUN: %clang -### -S %s -g0 -g -target i686-pc-openbsd 2>&1 \ | // RUN: %clang -### -S %s -g0 -g -target i686-pc-openbsd 2>&1 \ | ||||
// RUN: | FileCheck --check-prefix=CHECK-WITH-G-DWARF2 %s | // RUN: | FileCheck --check-prefix=CHECK-WITH-G-DWARF2 %s | ||||
// RUN: %clang -### -S %s -g0 -g -target x86_64-pc-freebsd10.0 2>&1 \ | // RUN: %clang -### -S %s -g0 -g -target x86_64-pc-freebsd10.0 2>&1 \ | ||||
// RUN: | FileCheck --check-prefix=CHECK-WITH-G-DWARF2 %s | // RUN: | FileCheck --check-prefix=CHECK-WITH-G-DWARF2 %s | ||||
// RUN: %clang -### -S %s -g0 -g -target i386-pc-solaris 2>&1 \ | // RUN: %clang -### -S %s -g0 -g -target i386-pc-solaris 2>&1 \ | ||||
// RUN: | FileCheck --check-prefix=CHECK-WITH-G-DWARF2 %s | // RUN: | FileCheck --check-prefix=CHECK-WITH-G-DWARF2 %s | ||||
// CHECK-WITHOUT-G-NOT: -debug-info-kind | // CHECK-WITHOUT-G-NOT: -debug-info-kind | ||||
// CHECK-WITH-G: "-debug-info-kind=limited" | // CHECK-WITH-G: "-debug-info-kind=constructor" | ||||
// CHECK-WITH-G: "-dwarf-version=4" | // CHECK-WITH-G: "-dwarf-version=4" | ||||
// CHECK-WITH-G-DWARF2: "-dwarf-version=2" | // CHECK-WITH-G-DWARF2: "-dwarf-version=2" | ||||
// CHECK-WITH-G-STANDALONE: "-debug-info-kind=standalone" | // CHECK-WITH-G-STANDALONE: "-debug-info-kind=standalone" | ||||
// CHECK-WITH-G-STANDALONE: "-dwarf-version=2" | // CHECK-WITH-G-STANDALONE: "-dwarf-version=2" |