From 0a2d0c1f5ff018576681c5514846ad1963f7b1a2 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Thu, 28 Mar 2019 01:56:16 +0000 Subject: [PATCH] Add reproduction instructions to llvm-objdump's embedded source test. llvm-svn: 357142 --- llvm/test/tools/llvm-objdump/embedded-source.test | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/llvm/test/tools/llvm-objdump/embedded-source.test b/llvm/test/tools/llvm-objdump/embedded-source.test index decb849..dd30471 100644 --- a/llvm/test/tools/llvm-objdump/embedded-source.test +++ b/llvm/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 -- 2.7.4