123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- // RUN: %build_test_apk --driver driver-simple-exit --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: set breakpoint pending on
- // DEBUGGER: break locals.rs:48
- // DEBUGGER: run-android-app
- // DEBUGGER: info locals
- // CHECK: pf = 0x
- // CHECK: s = {f = 0.00100000005, f2 = {10000, 100.5}}
- // CHECK: us = 65535
- // CHECK: f = 0
- // CHECK: d = {{[{][{]}}0, 1}, {2, 3{{[}][}]}}
- // CHECK: l = 0
- // CHECK: result = 0
- // DEBUGGER: continue
- struct float_struct {
- float f;
- float f2[2];
- } compound_float;
- static
- int main(int argc, char* argv[])
- {
- float f = 0.f;
- float *pf = &f;
- double d[2][2] = {{0, 1}, {2, 3.0}};
- struct float_struct s;
- unsigned short us = -1;
- const unsigned long l = (unsigned long) -1.0e8f;
- {
- int** ppn = 0;
- if (ppn) {
- return -1;
- }
- }
- s.f = 10e-4f;
- s.f2[0] = 1e4f;
- s.f2[1] = 100.5f;
- double result = pf[0] * d[1][1] * s.f * us * l;
- return (result == 0 ? 0 : -1);
- }
- void entry() {
- main(0, 0);
- }
- #pragma version(1)
- #pragma rs java_package_name(%PACKAGE%)
|