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-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 10 // 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 12 // 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 \ 15 // 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 18 // RUN: %clang -### -S %s -g0 -g -target x86_64-pc-freebsd10.0 2>&1 \ 19 // RUN: | FileCheck --check-prefix=CHECK-WITH-G-DWARF2 %s 20 21 // CHECK-WITHOUT-G-NOT: "-g" 22 // CHECK-WITH-G: "-g" 23 // CHECK-WITH-G-DWARF2: "-gdwarf-2" 24 25