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: http://review.tizen.org/git/?a=commitdiff_plain;h=0a2d0c1f5ff018576681c5514846ad1963f7b1a2;p=platform%2Fupstream%2Fllvm.git Add reproduction instructions to llvm-objdump's embedded source test. llvm-svn: 357142 --- 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