1 #pragma version(1) 2 #pragma rs java_package_name(foo) 3 4 float a = 1.23f; 5 6 float b = 4.56f + sizeof(void*); 7 8 double c = 7.89; 9 10 double d = 98.7 * sizeof(void*); 11 12 char e = 'e'; 13 14 char f = sizeof(void*); 15 16 int2 g = { 1, 2 }; 17 18 int2 h = { 3, sizeof(void*) }; 19 20 float4 i = { 1.2f, 3.4f, 5.6f, 7.8f }; 21 22 float4 j = { 1.2f, 3.4f, // vector component initialized differently 23 #ifdef __LP64__ 24 5.6f, 25 #else 26 6.5f, 27 #endif 28 7.8f }; 29 30 int k 31 #ifdef __LP64__ 32 = 0 // we get an error even though explicit zero initialization is redundant 33 #endif 34 ; 35 36 int l[10] = { 1, 2, 3 }; 37 38 int m[10] = { 1, 2, 3 39 #ifdef __LP64__ 40 , 4 // array with a different number of initializers 41 #endif 42 , 5 43 }; 44 45 int2 n = { 1 46 #ifdef __LP64__ 47 , 2 // vector with different number of initializers 48 #endif 49 }; 50 51 float4 jj = { 1.2f, 3.4f, // vector component initialized differently 52 #ifndef __LP64__ 53 5.6f, 54 #else 55 6.5f, 56 #endif 57 7.8f }; 58 59 int kk 60 #ifndef __LP64__ 61 = 0 // we get an error even though explicit zero initialization is redundant 62 #endif 63 ; 64 65 int mm[10] = { 1, 2, 3 66 #ifndef __LP64__ 67 , 4 // array with a different number of initializers 68 #endif 69 , 5 70 }; 71 72 int2 nn = { 1 73 #ifndef __LP64__ 74 , 2 // vector with a different number of initializers 75 #endif 76 }; 77