comparison clang/test/Driver/split-debug.s @ 150:1d019706d866

LLVM10
author anatofuz
date Thu, 13 Feb 2020 15:10:13 +0900
parents
children
comparison
equal deleted inserted replaced
147:c2174574ed3a 150:1d019706d866
1 // Check that we split debug output properly
2 //
3 // RUN: %clang -target x86_64-unknown-linux-gnu -gsplit-dwarf -c -### %s 2> %t
4 // RUN: FileCheck -check-prefix=CHECK-ACTIONS < %t %s
5 //
6 // CHECK-ACTIONS: "-split-dwarf-output" "split-debug.dwo"
7
8 // Check we pass -split-dwarf-output to `as` if -gsplit-dwarf=split.
9 // RUN: %clang -target x86_64-unknown-linux-gnu -gsplit-dwarf=split -c -### %s 2> %t
10 // RUN: FileCheck -check-prefix=CHECK-ACTIONS < %t %s
11
12 // Check we do not pass any -split-dwarf* commands to `as` if -gsplit-dwarf=single.
13 // RUN: %clang -target x86_64-unknown-linux-gnu -gsplit-dwarf=single -c -### %s 2> %t
14 // RUN: FileCheck -check-prefix=CHECK-NO-ACTIONS < %t %s
15
16 // RUN: %clang -target x86_64-macosx -gsplit-dwarf -c -### %s 2> %t
17 // RUN: FileCheck -check-prefix=CHECK-NO-ACTIONS < %t %s
18 //
19 // CHECK-NO-ACTIONS-NOT: -split-dwarf
20
21
22 // RUN: %clang -target x86_64-unknown-linux-gnu -gsplit-dwarf -o Bad.x -### %s 2> %t
23 // RUN: FileCheck -check-prefix=CHECK-BAD < %t %s
24 //
25 // CHECK-BAD-NOT: "Bad.dwo"
26