• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#pragma version(1)
2#pragma rs java_package_name(foo)
3
4struct t { int f; };
5
6struct q { int f; };
7
8struct b { int f; };
9
10struct j { int f; };
11
12struct f { int f; };
13
14struct o { int f; };
15
16// disagreement as to which struct types are exported
17
18#ifdef __LP64__
19struct t aa;
20struct q bb;
21struct b cc;
22int dd;
23int ee;
24int ff;
25#else
26int aa;
27int bb;
28int cc;
29struct j dd;
30struct f ee;
31struct o ff;
32#endif
33
34// disagreeement as to how many fields in an exported struct
35
36#ifdef __LP64__
37struct FieldCount {
38  int a;
39  float b;
40};
41#else
42struct FieldCount {
43  double c;
44};
45#endif
46
47struct 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__
54struct FieldName {
55  int a;
56  int b;
57  int c;
58  int d;
59};
60#else
61struct FieldName {
62  int a;
63  int e;
64  float c;
65  int f;
66};
67#endif
68
69struct FieldName hh;
70
71// disagreement as to field types in an exported struct
72
73struct FieldType {
74  int a;
75  size_t b;
76  rs_allocation c;
77  float d;
78  char e[sizeof(size_t)];
79};
80
81struct FieldType ii;
82