Add reproduction instructions to llvm-objdump's embedded source test.
authorEric Christopher <echristo@gmail.com>
Thu, 28 Mar 2019 01:56:16 +0000 (01:56 +0000)
committerEric Christopher <echristo@gmail.com>
Thu, 28 Mar 2019 01:56:16 +0000 (01:56 +0000)
llvm-svn: 357142

llvm/test/tools/llvm-objdump/embedded-source.test

index decb849..dd30471 100644 (file)
@@ -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