mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
461c2e711a
llvm-svn: 311294
29 lines
635 B
C
29 lines
635 B
C
#include <stdio.h>
|
|
|
|
int inc(int a) {
|
|
return a + 1;
|
|
}
|
|
|
|
int main() {
|
|
printf("%p\n", inc);
|
|
return 0;
|
|
}
|
|
|
|
// RUN: rm -rf %t && mkdir -p %t
|
|
// 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 : }
|