llvm.org GIT mirror llvm / 429be93
Make test robust to changes in prefix/avoid hardcoded line numbers git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309516 91177308-0d34-0410-b5e6-96231b3b80d8 David Blaikie 2 years ago
1 changed file(s) with 8 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
0 // REQUIRES: x86_64-linux
11 // RUN: %host_cc -O0 -g %s -o %t 2>&1
22 // RUN: %t 2>&1 | llvm-symbolizer -print-source-context-lines=5 -obj=%t | FileCheck %s
3
4 // CHECK: inc
5 // CHECK: print_context.c:[[@LINE+9]]
6 // CHECK: [[@LINE+6]] : #include
7 // CHECK: [[@LINE+6]] :
8 // CHECK: [[@LINE+6]] >: int inc
9 // CHECK: [[@LINE+6]] : return
10 // CHECK: [[@LINE+6]] : }
311
412 #include
513
1220 return 0;
1321 }
1422
15 // CHECK: inc
16 // CHECK: print_context.c:7
17 // CHECK: 5 : #include
18 // CHECK: 6 :
19 // CHECK: 7 >: int inc
20 // CHECK: 8 : return
21 // CHECK: 9 : }