blob: 9ca1fd38e4075d0ad13667820faf5963299c3b9b [file] [log] [blame]
Dmitri Gribenko9eaae742013-01-28 17:30:37 +00001// RUN: %clang -### -S %s 2>&1 | FileCheck --check-prefix=CHECK-WITHOUT-G %s
Manman Ren825e8e412013-07-03 20:45:07 +00002// RUN: %clang -### -S %s -g -target x86_64-linux-gnu 2>&1 \
3// RUN: | FileCheck --check-prefix=CHECK-WITH-G %s
4// RUN: %clang -### -S %s -g -target x86_64-apple-darwin 2>&1 \
5// RUN: | FileCheck --check-prefix=CHECK-WITH-G-DARWIN %s
Dmitri Gribenko9eaae742013-01-28 17:30:37 +00006// RUN: %clang -### -S %s -g0 2>&1 | FileCheck --check-prefix=CHECK-WITHOUT-G %s
7// RUN: %clang -### -S %s -g -g0 2>&1 | FileCheck --check-prefix=CHECK-WITHOUT-G %s
Manman Ren825e8e412013-07-03 20:45:07 +00008// RUN: %clang -### -S %s -g0 -g -target x86_64-linux-gnu 2>&1 \
9// RUN: | FileCheck --check-prefix=CHECK-WITH-G %s
10// RUN: %clang -### -S %s -g0 -g -target x86_64-apple-darwin 2>&1 \
11// RUN: | FileCheck --check-prefix=CHECK-WITH-G-DARWIN %s
Dmitri Gribenko9eaae742013-01-28 17:30:37 +000012
13// CHECK-WITHOUT-G-NOT: "-g"
Manman Ren825e8e412013-07-03 20:45:07 +000014// CHECK-WITH-G: "-g"
15// CHECK-WITH-G-DARWIN: "-gdwarf-2"
Dmitri Gribenko9eaae742013-01-28 17:30:37 +000016