blob: b0cda57d6ba3a6c788a4f62620f344899913276a [file] [log] [blame] [edit]
#include <stdio.h>
int inc(int a) {
return a + 1;
}
int main() {
printf("%p\n", inc);
return 0;
}
// RUN: cp %s %T
// RUN: cp %p/Inputs/print_context.o %T
// RUN: cd %T
// RUN: echo "%T/print_context.o 0x0" | llvm-symbolizer -print-source-context-lines=5 | FileCheck %s
// Inputs/print_context.o built with plain -g -c from this source file
// Specifying -Xclang -fdebug-compilation-dir -Xclang . to make the debug info
// location independent.
// CHECK: inc
// CHECK: print_context.c:3
// CHECK: 1 : #include
// CHECK: 2 :
// CHECK: 3 >: int inc
// CHECK: 4 : return
// CHECK: 5 : }