summaryrefslogtreecommitdiff
path: root/kernels/compiler_structure_attributes.cl
blob: a07dd88ad42f01f8e492b972933ab9846ca68446 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#define X(x, y) x ## y
#define NAME(x, y) X(x, y)
#define S struct NAME(s, __LINE__) { \
  char c;  \
  int i;   \
  float f; \
}

S __attribute__((aligned(16)));
S __attribute__((aligned));
S __attribute__((packed));
S __attribute__((endian(host)));
S __attribute__((endian(device)));
S __attribute__((endian));

__kernel void compiler_structure_attributes() {
}