xref: /minix3/external/bsd/llvm/dist/clang/test/Driver/clang-g-opts.c (revision 0b98e8aad89f2bd4ba80b523d73cf29e9dd82ce1)
1 // RUN: %clang -### -S %s        2>&1 | FileCheck --check-prefix=CHECK-WITHOUT-G %s
2 // 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
6 // 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
8 // 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
12 
13 // CHECK-WITHOUT-G-NOT: "-g"
14 // CHECK-WITH-G: "-g"
15 // CHECK-WITH-G-DARWIN: "-gdwarf-2"
16 
17