1 #pragma version(1)
2 #pragma rs java_package_name(foo)
3 
4 struct t { int f; };
5 
6 struct q { int f; };
7 
8 struct b { int f; };
9 
10 struct j { int f; };
11 
12 struct f { int f; };
13 
14 struct o { int f; };
15 
16 // disagreement as to which struct types are exported
17 
18 #ifdef __LP64__
19 struct t aa;
20 struct q bb;
21 struct b cc;
22 int dd;
23 int ee;
24 int ff;
25 #else
26 int aa;
27 int bb;
28 int cc;
29 struct j dd;
30 struct f ee;
31 struct o ff;
32 #endif
33 
34 // disagreeement as to how many fields in an exported struct
35 
36 #ifdef __LP64__
37 struct FieldCount {
38   int a;
39   float b;
40 };
41 #else
42 struct FieldCount {
43   double c;
44 };
45 #endif
46 
47 struct FieldCount gg;
48 
49 // disagreement as to field name in an exported struct
50 // (after first mismatched name, we do not report
51 // any other errors for the struct)
52 
53 #ifdef __LP64__
54 struct FieldName {
55   int a;
56   int b;
57   int c;
58   int d;
59 };
60 #else
61 struct FieldName {
62   int a;
63   int e;
64   float c;
65   int f;
66 };
67 #endif
68 
69 struct FieldName hh;
70 
71 // disagreement as to field types in an exported struct
72 
73 struct FieldType {
74   int a;
75   size_t b;
76   rs_allocation c;
77   float d;
78   char e[sizeof(size_t)];
79 };
80 
81 struct FieldType ii;
82