r352542 - [cc1as] Test that -g of empty .s file does something sensible.

Paul Robinson via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 29 12:57:51 PST 2019


Author: probinson
Date: Tue Jan 29 12:57:50 2019
New Revision: 352542

URL: http://llvm.org/viewvc/llvm-project?rev=352542&view=rev
Log:
[cc1as] Test that -g of empty .s file does something sensible.

Depends on LLVM r352541.

Added:
    cfe/trunk/test/Misc/cc1as-asm-debug.s

Added: cfe/trunk/test/Misc/cc1as-asm-debug.s
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Misc/cc1as-asm-debug.s?rev=352542&view=auto
==============================================================================
--- cfe/trunk/test/Misc/cc1as-asm-debug.s (added)
+++ cfe/trunk/test/Misc/cc1as-asm-debug.s Tue Jan 29 12:57:50 2019
@@ -0,0 +1,11 @@
+// Run cc1as with debug on empty file. Needs a known name so we can check it.
+// REQUIRES: x86-registered-target
+// RUN: rm -rf %t && mkdir -p %t
+// RUN: cp %s %t/comment.s
+// RUN: %clang -cc1as -triple x86_64-linux-gnu -filetype asm -debug-info-kind=limited -dwarf-version=4 %t/comment.s | FileCheck %s
+// RUN: %clang -cc1as -triple x86_64-linux-gnu -filetype asm -debug-info-kind=limited -dwarf-version=5 %t/comment.s | FileCheck %s
+// Asm output actually emits the .section directives twice.
+// CHECK: {{\.}}section .debug_info
+// CHECK: {{\.}}section .debug_info
+// CHECK-NOT: {{\.}}section
+// CHECK: .ascii "comment.s"




More information about the cfe-commits mailing list