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