Home | History | Annotate | Download | only in F_fs_ptr
      1 #pragma version(1)
      2 #pragma rs java_package_name(foo)
      3 
      4 int *i;
      5 
      6 struct f {
      7     int i;
      8     float *pf;
      9     char c;
     10     short *ps;
     11 };
     12 
     13 int ia[10];
     14 
     15 int __attribute__((kernel)) root(uint32_t ain) {
     16   char *c;
     17 
     18   c = (char*) ain; // TODO(srhines): This is ok today.
     19   return 0;
     20 }
     21 
     22 void __attribute__((kernel)) in_only(uint32_t ain) {
     23 }
     24 
     25 int __attribute__((kernel)) out_only() {
     26   return 0;
     27 }
     28 
     29 int __attribute__((kernel)) everything(uint32_t ain, uint32_t x, uint32_t y) {
     30   return (int)&ain; // TODO(srhines): This is ok today.
     31 }
     32 
     33 void old_kernel(const uint32_t *ain, uint32_t x, uint32_t y) {
     34 }
     35 
     36 void test_call() {
     37     int i = root(ia[4]);
     38 }
     39 
     40