diff --git a/llvm/docs/CommandGuide/llvm-symbolizer.rst b/llvm/docs/CommandGuide/llvm-symbolizer.rst --- a/llvm/docs/CommandGuide/llvm-symbolizer.rst +++ b/llvm/docs/CommandGuide/llvm-symbolizer.rst @@ -359,7 +359,7 @@ .. code-block:: console - $ llvm-symbolizer --obj=test.elf 0x400490 --print-source-context-lines=2 + $ llvm-symbolizer --obj=test.elf 0x400490 --print-source-context-lines=3 baz() /tmp/test.cpp:11:0 10 : volatile int k = 42; diff --git a/llvm/test/tools/llvm-symbolizer/print_context.c b/llvm/test/tools/llvm-symbolizer/print_context.c --- a/llvm/test/tools/llvm-symbolizer/print_context.c +++ b/llvm/test/tools/llvm-symbolizer/print_context.c @@ -20,9 +20,10 @@ // location independent. // CHECK: inc -// CHECK: print_context.c:3 -// CHECK: 1 : #include -// CHECK: 2 : -// CHECK: 3 >: int inc -// CHECK: 4 : return -// CHECK: 5 : } +// CHECK-NEXT: print_context.c:3 +// CHECK-NEXT: 1 : #include +// CHECK-NEXT: 2 : +// CHECK-NEXT: 3 >: int inc +// CHECK-NEXT: 4 : return +// CHECK-NEXT: 5 : } +// CHECK-NOT: 6