Dmitri Gribenko | 9eaae74 | 2013-01-28 17:30:37 +0000 | [diff] [blame] | 1 | // RUN: %clang -### -S %s 2>&1 | FileCheck --check-prefix=CHECK-WITHOUT-G %s |
Manman Ren | 825e8e41 | 2013-07-03 20:45:07 +0000 | [diff] [blame^] | 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 |
Dmitri Gribenko | 9eaae74 | 2013-01-28 17:30:37 +0000 | [diff] [blame] | 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 |
Manman Ren | 825e8e41 | 2013-07-03 20:45:07 +0000 | [diff] [blame^] | 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 |
Dmitri Gribenko | 9eaae74 | 2013-01-28 17:30:37 +0000 | [diff] [blame] | 12 | |
| 13 | // CHECK-WITHOUT-G-NOT: "-g" |
Manman Ren | 825e8e41 | 2013-07-03 20:45:07 +0000 | [diff] [blame^] | 14 | // CHECK-WITH-G: "-g" |
| 15 | // CHECK-WITH-G-DARWIN: "-gdwarf-2" |
Dmitri Gribenko | 9eaae74 | 2013-01-28 17:30:37 +0000 | [diff] [blame] | 16 | |