diff options
author | Homer Hsing <homer.xing@intel.com> | 2012-11-21 14:42:31 +0800 |
---|---|---|
committer | Zhigang Gong <zhigang.gong@linux.intel.com> | 2013-03-29 18:41:32 +0800 |
commit | 2820ab22f6f9cdb4b4ad28933f5bfd06f72cbb57 (patch) | |
tree | cb97d9807f95f8e6fa3998829d063e6fdb1d1dd7 /kernels | |
parent | 2a41896e21369bf17fdef20579a8948d632de1cd (diff) | |
download | beignet-2820ab22f6f9cdb4b4ad28933f5bfd06f72cbb57.tar.gz |
Test case for OpenCL 1.1 structure attributes
Diffstat (limited to 'kernels')
-rw-r--r-- | kernels/compiler_structure_attributes.cl | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/kernels/compiler_structure_attributes.cl b/kernels/compiler_structure_attributes.cl new file mode 100644 index 00000000..a07dd88a --- /dev/null +++ b/kernels/compiler_structure_attributes.cl @@ -0,0 +1,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() { +} |