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 | |||||
Aaron Ballman | 00e9996 | 2013-08-31 01:11:41 +0000 | [diff] [blame] | 9 | void func() __attribute__((endian(host))); // expected-warning {{'endian' attribute only applies to variables}} |