1#Source: 2##include <stdio.h> 3#static inline int inctwo (int *a) { 4# printf ("%d\n",(*a)++); 5# return (*a)++; 6#} 7#static inline int inc (int *a) { 8# printf ("%d\n",inctwo(a)); 9# return (*a)++; 10#} 11# 12# 13#int main () { 14# int x = 1; 15# return inc(&x); 16#} 17# 18#Build as : clang -g -O2 addr.c 19 20RUN: llvm-symbolizer -print-address -obj=%p/Inputs/addr.exe < %p/Inputs/addr.inp | FileCheck %s 21RUN: llvm-symbolizer -inlining -print-address -pretty-print -obj=%p/Inputs/addr.exe < %p/Inputs/addr.inp | FileCheck --check-prefix="PRETTY" %s 22RUN: echo "0x1" > %t.input 23RUN: llvm-symbolizer -obj=%p/Inputs/zero < %t.input | FileCheck --check-prefix="ZERO" %s 24 25#CHECK: some text 26#CHECK: 0x40054d 27#CHECK: main 28#CHECK: {{[/\]+}}tmp{{[/\]+}}x.c:14:0 29#CHECK: some text2 30# 31#PRETTY: some text 32#PRETTY: {{[0x]+}}40054d: inctwo at {{[/\]+}}tmp{{[/\]+}}x.c:3:3 33#PRETTY: (inlined by) inc at {{[/\]+}}tmp{{[/\]+}}x.c:7:0 34#PRETTY (inlined by) main at {{[/\]+}}tmp{{[/\]+}}x.c:14:0 35#PRETTY: some text2 36# 37#ZERO: ?? 38#ZERO: ??:0:0 39