From: Eric Christopher Date: Thu, 28 Mar 2019 01:56:16 +0000 (+0000) Subject: Add reproduction instructions to llvm-objdump's embedded source test. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=28d5e13c110e28f8d95837ba0028db46a3643e49;p=llvm Add reproduction instructions to llvm-objdump's embedded source test. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@357142 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/tools/llvm-objdump/embedded-source.test b/test/tools/llvm-objdump/embedded-source.test index decb84954ac..dd3047173c9 100644 --- a/test/tools/llvm-objdump/embedded-source.test +++ b/test/tools/llvm-objdump/embedded-source.test @@ -2,6 +2,16 @@ ; RUN: llvm-objdump -disassemble -source %p/Inputs/embedded-source | FileCheck --check-prefix=SOURCE %s ; REQUIRES: x86-registered-target +; Source for embedded-source.c +; To regenerate this file: +; clang -gdwarf-5 -gembed-source embedded-source.c -o embedded-source +; +; int main(int argc, char *argv[]) { +; int i = 2; +; i += 1; +; return i; +; } + ; LINE: main: ; LINE-NEXT: ; {{.*}}embedded-source.c:1 ; LINE-NEXT: pushq %rbp