Skip to content

Commit 33c9d9a

Browse files
committed
[cc1as] Test that -g of empty .s file does something sensible.
Depends on LLVM r352541. llvm-svn: 352542
1 parent 4ca2947 commit 33c9d9a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

clang/test/Misc/cc1as-asm-debug.s

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// Run cc1as with debug on empty file. Needs a known name so we can check it.
2+
// REQUIRES: x86-registered-target
3+
// RUN: rm -rf %t && mkdir -p %t
4+
// RUN: cp %s %t/comment.s
5+
// RUN: %clang -cc1as -triple x86_64-linux-gnu -filetype asm -debug-info-kind=limited -dwarf-version=4 %t/comment.s | FileCheck %s
6+
// RUN: %clang -cc1as -triple x86_64-linux-gnu -filetype asm -debug-info-kind=limited -dwarf-version=5 %t/comment.s | FileCheck %s
7+
// Asm output actually emits the .section directives twice.
8+
// CHECK: {{\.}}section .debug_info
9+
// CHECK: {{\.}}section .debug_info
10+
// CHECK-NOT: {{\.}}section
11+
// CHECK: .ascii "comment.s"

0 commit comments

Comments
 (0)