Home | History | Annotate | Download | only in target-tests
      1 // RUN: %build_test_apk --driver driver-simple-exit --out %t --testcase %s %build_test_apk_opts
      2 // RUN: %Test_jit_debuginfo %s %t
      3 // DEBUGGER: source android-commands.py
      4 // DEBUGGER: load-android-app %t
      5 // DEBUGGER: set breakpoint pending on
      6 // DEBUGGER: b %s:18
      7 // DEBUGGER: run-android-app
      8 // DEBUGGER: bt
      9 // CHECK: some_function
     10 // CHECK: foo
     11 // CHECK: bar
     12 // CHECK: entry
     13 // CHECK: breakpoint_inlined_sourceline.rs:
     14 
     15 #pragma version(1)
     16 #pragma rs java_package_name(%PACKAGE%)
     17 
     18 static int twenty() {
     19   return 20;
     20 }
     21 
     22 static int some_function() {
     23   return twenty();
     24 }
     25 
     26 static int foo() {
     27   return some_function();
     28 }
     29 
     30 static int bar() {
     31   return foo();
     32 }
     33 
     34 int root() {
     35   return bar();
     36 }
     37 
     38 void entry() {
     39   bar();
     40 }
     41