diff options
Diffstat (limited to 'test/Driver/clang-g-opts.c')
-rw-r--r-- | test/Driver/clang-g-opts.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/test/Driver/clang-g-opts.c b/test/Driver/clang-g-opts.c index f5d09fd..9ca1fd3 100644 --- a/test/Driver/clang-g-opts.c +++ b/test/Driver/clang-g-opts.c @@ -1,9 +1,16 @@ // RUN: %clang -### -S %s 2>&1 | FileCheck --check-prefix=CHECK-WITHOUT-G %s -// RUN: %clang -### -S %s -g 2>&1 | FileCheck --check-prefix=CHECK-WITH-G %s +// RUN: %clang -### -S %s -g -target x86_64-linux-gnu 2>&1 \ +// RUN: | FileCheck --check-prefix=CHECK-WITH-G %s +// RUN: %clang -### -S %s -g -target x86_64-apple-darwin 2>&1 \ +// RUN: | FileCheck --check-prefix=CHECK-WITH-G-DARWIN %s // RUN: %clang -### -S %s -g0 2>&1 | FileCheck --check-prefix=CHECK-WITHOUT-G %s // RUN: %clang -### -S %s -g -g0 2>&1 | FileCheck --check-prefix=CHECK-WITHOUT-G %s -// RUN: %clang -### -S %s -g0 -g 2>&1 | FileCheck --check-prefix=CHECK-WITH-G %s +// RUN: %clang -### -S %s -g0 -g -target x86_64-linux-gnu 2>&1 \ +// RUN: | FileCheck --check-prefix=CHECK-WITH-G %s +// RUN: %clang -### -S %s -g0 -g -target x86_64-apple-darwin 2>&1 \ +// RUN: | FileCheck --check-prefix=CHECK-WITH-G-DARWIN %s // CHECK-WITHOUT-G-NOT: "-g" // CHECK-WITH-G: "-g" +// CHECK-WITH-G-DARWIN: "-gdwarf-2" |