You've already forked linux-packaging-mono
Imported Upstream version 6.0.0.172
Former-commit-id: f3cc9b82f3e5bd8f0fd3ebc098f789556b44e9cd
This commit is contained in:
parent
8016999e4d
commit
64ac736ec5
34
external/llvm/test/tools/llvm-symbolizer/sym.test
vendored
Normal file
34
external/llvm/test/tools/llvm-symbolizer/sym.test
vendored
Normal file
@ -0,0 +1,34 @@
|
||||
#Source:
|
||||
##include <stdio.h>
|
||||
#static inline int inctwo (int *a) {
|
||||
# printf ("%d\n",(*a)++);
|
||||
# return (*a)++;
|
||||
#}
|
||||
#static inline int inc (int *a) {
|
||||
# printf ("%d\n",inctwo(a));
|
||||
# return (*a)++;
|
||||
#}
|
||||
#
|
||||
#
|
||||
#int main () {
|
||||
# int x = 1;
|
||||
# return inc(&x);
|
||||
#}
|
||||
#
|
||||
#Build as : clang -g -O2 addr.c
|
||||
|
||||
RUN: llvm-symbolizer -print-address -obj=%p/Inputs/addr.exe < %p/Inputs/addr.inp | FileCheck %s
|
||||
RUN: llvm-symbolizer -inlining -print-address -pretty-print -obj=%p/Inputs/addr.exe < %p/Inputs/addr.inp | FileCheck --check-prefix="PRETTY" %s
|
||||
|
||||
#CHECK: some text
|
||||
#CHECK: 0x40054d
|
||||
#CHECK: main
|
||||
#CHECK: {{[/\]+}}tmp{{[/\]+}}x.c:14:0
|
||||
#CHECK: some text2
|
||||
#
|
||||
#PRETTY: some text
|
||||
#PRETTY: {{[0x]+}}40054d: inctwo at {{[/\]+}}tmp{{[/\]+}}x.c:3:3
|
||||
#PRETTY: (inlined by) inc at {{[/\]+}}tmp{{[/\]+}}x.c:7:0
|
||||
#PRETTY (inlined by) main at {{[/\]+}}tmp{{[/\]+}}x.c:14:0
|
||||
#PRETTY: some text2
|
||||
|
Reference in New Issue
Block a user