Home | History | Annotate | Download | only in SemaOpenCL
      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}}
     10