| Joey Gouly | 0608ae8 | 2013-03-14 09:54:43 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -verify %s |
| 2 | |||||
| 3 | constant long a __attribute__((endian(host))) = 100; | ||||
| 4 | |||||
| 5 | constant long b __attribute__((endian(device))) = 100; | ||||
| 6 | |||||
| 7 | constant long c __attribute__((endian(none))) = 100; // expected-warning {{unknown endian 'none'}} | ||||
| 8 | |||||
| 9 | void func() __attribute__((endian(host))); // expected-warning {{endian attribute only applies to variables}} | ||||