mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-29 16:05:28 +00:00
Add missing test cases from r293697/D29094
Differential Revision: https://reviews.llvm.org/D29368 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@293785 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
387f151ad9
commit
719dc0e356
BIN
test/tools/llvm-symbolizer/Inputs/discrim
Normal file
BIN
test/tools/llvm-symbolizer/Inputs/discrim
Normal file
Binary file not shown.
8
test/tools/llvm-symbolizer/Inputs/discrim.c
Normal file
8
test/tools/llvm-symbolizer/Inputs/discrim.c
Normal file
@ -0,0 +1,8 @@
|
||||
static volatile int do_mul;
|
||||
static volatile int do_inc;
|
||||
|
||||
int main () {
|
||||
int x = 1;
|
||||
if (do_mul) x *= 2; else x /= 2;
|
||||
return do_inc ? ++x : --x;
|
||||
}
|
5
test/tools/llvm-symbolizer/Inputs/discrim.inp
Normal file
5
test/tools/llvm-symbolizer/Inputs/discrim.inp
Normal file
@ -0,0 +1,5 @@
|
||||
some text
|
||||
0x4004f2
|
||||
0x400509
|
||||
0x40050d
|
||||
some more text
|
36
test/tools/llvm-symbolizer/sym-verbose.test
Normal file
36
test/tools/llvm-symbolizer/sym-verbose.test
Normal file
@ -0,0 +1,36 @@
|
||||
#static volatile int do_mul;
|
||||
#static volatile int do_inc;
|
||||
#
|
||||
#int main () {
|
||||
# int x = 1;
|
||||
# if (do_mul) x *= 2; else x /= 2;
|
||||
# return do_inc ? ++x : --x;
|
||||
#}
|
||||
#Build as : clang -g -O2 discrim.c -o discrim
|
||||
|
||||
RUN: llvm-symbolizer -verbose -print-address -obj=%p/Inputs/discrim < %p/Inputs/discrim.inp | FileCheck %s
|
||||
|
||||
#CHECK: some text
|
||||
|
||||
#CHECK: 0x4004f2
|
||||
#CHECK-NEXT: main
|
||||
#CHECK-NEXT: Filename: /tmp/discrim.c
|
||||
#CHECK-NEXT: Line: 6
|
||||
#CHECK-NEXT: Column: 7
|
||||
#CHECK-NOT: Discriminator: 0
|
||||
|
||||
#CHECK: 0x400509
|
||||
#CHECK-NEXT: main
|
||||
#CHECK-NEXT: Filename: /tmp/discrim.c
|
||||
#CHECK-NEXT: Line: 7
|
||||
#CHECK-NEXT: Column: 3
|
||||
#CHECK-NEXT: Discriminator: 1
|
||||
|
||||
#CHECK: 0x40050d
|
||||
#CHECK-NEXT: main
|
||||
#CHECK-NEXT: Filename: /tmp/discrim.c
|
||||
#CHECK-NEXT: Line: 7
|
||||
#CHECK-NEXT: Column: 3
|
||||
#CHECK-NEXT: Discriminator: 2
|
||||
|
||||
#CHECK: some more text
|
Loading…
Reference in New Issue
Block a user