2015-10-13 03:26:44 +08:00
|
|
|
#Source:
|
|
|
|
##include <stdio.h>
|
2015-11-12 01:47:54 +08:00
|
|
|
#static inline int inc (int *a) {
|
2015-11-12 02:11:06 +08:00
|
|
|
# printf ("%d\n",(*a)++);
|
2015-11-12 01:47:54 +08:00
|
|
|
# return (*a)++;
|
|
|
|
#}
|
|
|
|
#
|
2015-10-13 03:26:44 +08:00
|
|
|
#int main () {
|
|
|
|
# int x = 1;
|
|
|
|
# return inc(&x);
|
|
|
|
#}
|
|
|
|
#Build as : clang -g -O2 addr.c
|
|
|
|
|
2015-11-12 02:11:06 +08:00
|
|
|
RUN: llvm-symbolizer -inlining -print-address -obj=%p/Inputs/addr.exe < %p/Inputs/addr.inp | FileCheck %s
|
2015-10-13 03:26:44 +08:00
|
|
|
|
|
|
|
#CHECK: 0x40054d
|
|
|
|
#CHECK: main
|
2015-11-12 02:11:06 +08:00
|
|
|
#CHECK: {{[/\]+}}tmp{{[/\]+}}x.c:9:0
|
2015-10-13 03:26:44 +08:00
|
|
|
|