2013-01-29 01:30:37 +08:00
|
|
|
// RUN: %clang -### -S %s 2>&1 | FileCheck --check-prefix=CHECK-WITHOUT-G %s
|
2013-07-04 04:45:07 +08:00
|
|
|
// RUN: %clang -### -S %s -g -target x86_64-linux-gnu 2>&1 \
|
|
|
|
// RUN: | FileCheck --check-prefix=CHECK-WITH-G %s
|
|
|
|
// RUN: %clang -### -S %s -g -target x86_64-apple-darwin 2>&1 \
|
|
|
|
// RUN: | FileCheck --check-prefix=CHECK-WITH-G-DARWIN %s
|
2013-01-29 01:30:37 +08:00
|
|
|
// RUN: %clang -### -S %s -g0 2>&1 | FileCheck --check-prefix=CHECK-WITHOUT-G %s
|
|
|
|
// RUN: %clang -### -S %s -g -g0 2>&1 | FileCheck --check-prefix=CHECK-WITHOUT-G %s
|
2013-07-04 04:45:07 +08:00
|
|
|
// RUN: %clang -### -S %s -g0 -g -target x86_64-linux-gnu 2>&1 \
|
|
|
|
// RUN: | FileCheck --check-prefix=CHECK-WITH-G %s
|
|
|
|
// RUN: %clang -### -S %s -g0 -g -target x86_64-apple-darwin 2>&1 \
|
|
|
|
// RUN: | FileCheck --check-prefix=CHECK-WITH-G-DARWIN %s
|
2013-01-29 01:30:37 +08:00
|
|
|
|
|
|
|
// CHECK-WITHOUT-G-NOT: "-g"
|
2013-07-04 04:45:07 +08:00
|
|
|
// CHECK-WITH-G: "-g"
|
2014-02-18 01:40:52 +08:00
|
|
|
// CHECK-WITH-G-DARWIN: "-gdwarf-2"
|
2013-01-29 01:30:37 +08:00
|
|
|
|