You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
616 B
37 lines
616 B
7 months ago
|
// RUN: %build_test_apk --driver driver-simple --out %t --testcase %s %build_test_apk_opts
|
||
|
// RUN: %Test_jit_debuginfo %s %t
|
||
|
// DEBUGGER: source android-commands.py
|
||
|
// DEBUGGER: load-android-app %t
|
||
|
// DEBUGGER: run-android-app
|
||
|
// DEBUGGER: bt
|
||
|
// CHECK: entry
|
||
|
|
||
|
#pragma version(1)
|
||
|
#pragma rs java_package_name(%PACKAGE%)
|
||
|
|
||
|
static int function_with_a_segfault() {
|
||
|
int* bla = 0;
|
||
|
*bla = 5;
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
static int some_function() {
|
||
|
return function_with_a_segfault();
|
||
|
}
|
||
|
|
||
|
static int foo() {
|
||
|
return some_function();
|
||
|
}
|
||
|
|
||
|
static int bar() {
|
||
|
return foo();
|
||
|
}
|
||
|
|
||
|
int root() {
|
||
|
return bar();
|
||
|
}
|
||
|
|
||
|
void entry() {
|
||
|
bar();
|
||
|
}
|