blob: a9566b7ee1d5d18dd789b2af4534709b88728c03 [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 \
Brad Smith378e7f9b2014-06-13 03:35:37 +00005// RUN: | FileCheck --check-prefix=CHECK-WITH-G-DWARF2 %s
6// RUN: %clang -### -S %s -g -target i686-pc-openbsd 2>&1 \
7// RUN: | FileCheck --check-prefix=CHECK-WITH-G-DWARF2 %s
8// RUN: %clang -### -S %s -g -target x86_64-pc-freebsd10.0 2>&1 \
9// RUN: | FileCheck --check-prefix=CHECK-WITH-G-DWARF2 %s
Dmitri Gribenko9eaae742013-01-28 17:30:37 +000010// RUN: %clang -### -S %s -g0 2>&1 | FileCheck --check-prefix=CHECK-WITHOUT-G %s
11// RUN: %clang -### -S %s -g -g0 2>&1 | FileCheck --check-prefix=CHECK-WITHOUT-G %s
Manman Ren825e8e412013-07-03 20:45:07 +000012// RUN: %clang -### -S %s -g0 -g -target x86_64-linux-gnu 2>&1 \
13// RUN: | FileCheck --check-prefix=CHECK-WITH-G %s
14// RUN: %clang -### -S %s -g0 -g -target x86_64-apple-darwin 2>&1 \
Brad Smith378e7f9b2014-06-13 03:35:37 +000015// RUN: | FileCheck --check-prefix=CHECK-WITH-G-DWARF2 %s
16// RUN: %clang -### -S %s -g0 -g -target i686-pc-openbsd 2>&1 \
17// RUN: | FileCheck --check-prefix=CHECK-WITH-G-DWARF2 %s
Brad Smith6d1dfdc2014-06-13 03:53:07 +000018// RUN: %clang -### -S %s -g0 -g -target x86_64-pc-freebsd10.0 2>&1 \
Brad Smith378e7f9b2014-06-13 03:35:37 +000019// RUN: | FileCheck --check-prefix=CHECK-WITH-G-DWARF2 %s
Dmitri Gribenko9eaae742013-01-28 17:30:37 +000020
21// CHECK-WITHOUT-G-NOT: "-g"
Manman Ren825e8e412013-07-03 20:45:07 +000022// CHECK-WITH-G: "-g"
Brad Smith378e7f9b2014-06-13 03:35:37 +000023// CHECK-WITH-G-DWARF2: "-gdwarf-2"
Dmitri Gribenko9eaae742013-01-28 17:30:37 +000024