info_sources.rs 483 B

1234567891011121314151617181920
  1. // RUN: %build_test_apk --driver driver-simple --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: run-android-app
  6. // DEBUGGER: info sources
  7. // CHECK: info_sources/info_sources.rs
  8. #pragma version(1)
  9. #pragma rs java_package_name(%PACKAGE%)
  10. static int function_with_a_segfault() {
  11. int* bla = 0;
  12. *bla = 5;
  13. return 0;
  14. }
  15. void entry() {
  16. function_with_a_segfault();
  17. }