1 // RUN: %Slang %s 2 // RUN: %rs-filecheck-wrapper %s 3 // CHECK: call void @_Z13rsClearObjectP10rs_element(%struct.rs_element{{.*}}* nonnull %.rs.tmp{{[0-9]+}}) 4 // CHECK: call void @_Z11rsSetObjectP10rs_elementS_(%struct.rs_element{{.*}}* nonnull %.rs.retval{{[0-9]+}}, {{.*}}) 5 6 #pragma version(1) 7 #pragma rs java_package_name(ref_count) 8 9 static rs_element bar() { 10 rs_element x = {0}; 11 return x; 12 } 13 14 void entrypoint() { 15 rs_element e = bar(); 16 if (rsIsObject(e)) { 17 rsDebug("good object", 0); 18 } 19 } 20 21 22