blob: 4a1e71908b9cb38029e7158c4f9385d620d668ac [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
Alexander Eremin670c6272014-10-16 05:55:24 +000020// RUN: %clang -### -S %s -g0 -g -target i386-pc-solaris 2>&1 \
21// RUN: | FileCheck --check-prefix=CHECK-WITH-G-DWARF2 %s
Dmitri Gribenko9eaae742013-01-28 17:30:37 +000022
23// CHECK-WITHOUT-G-NOT: "-g"
Manman Ren825e8e412013-07-03 20:45:07 +000024// CHECK-WITH-G: "-g"
Brad Smith378e7f9b2014-06-13 03:35:37 +000025// CHECK-WITH-G-DWARF2: "-gdwarf-2"
Dmitri Gribenko9eaae742013-01-28 17:30:37 +000026