| 1 |
// RUN: %clang_cc1 %s -ast-print -fms-extensions | FileCheck %s |
| 2 |
|
| 3 |
// CHECK: int x __attribute__((aligned(4))); |
| 4 |
int x __attribute__((aligned(4))); |
| 5 |
|
| 6 |
// CHECK: __declspec(align(4)) int y; |
| 7 |
__declspec(align(4)) int y; |
| 8 |
|
| 9 |
// CHECK: short arr[3] __attribute__((aligned)); |
| 10 |
short arr[3] __attribute__((aligned)); |
| 11 |
|
| 12 |
// CHECK: int foo(void) __attribute__((const)); |
| 13 |
int foo(void) __attribute__((const)); |
| 14 |
|
| 15 |
// CHECK: int bar(void) __attribute__((__const)); |
| 16 |
int bar(void) __attribute__((__const)); |
| 17 |
|
| 18 |
// CHECK: int * __ptr32 p32; |
| 19 |
int * __ptr32 p32; |
| 20 |
|
| 21 |
// CHECK: int * __ptr64 p64; |
| 22 |
int * __ptr64 p64; |
| 23 |
|
| 24 |
// CHECK: int * __uptr __ptr32 p32_2; |
| 25 |
int * __uptr __ptr32 p32_2; |
| 26 |
|
| 27 |
// CHECK: int * __sptr __ptr64 p64_2; |
| 28 |
int * __sptr __ptr64 p64_2; |
| 29 |
|
| 30 |
// CHECK: int * __uptr __ptr32 p32_3; |
| 31 |
int * __uptr __ptr32 p32_3; |
| 32 |
|
| 33 |
// CHECK: int * __sptr * __ptr32 ppsp32; |
| 34 |
int * __sptr * __ptr32 ppsp32; |
| 35 |
|
| 36 |
// CHECK: __attribute__((availability(macos, strict, introduced=10.6))); |
| 37 |
void f6(int) __attribute__((availability(macosx,strict,introduced=10.6))); |
| 38 |
|
| 39 |
// CHECK: _libc_intl_domainname asm("__gi__libc_intl_domainname") __attribute__((visibility("hidden"))); |
| 40 |
extern const char _libc_intl_domainname[]; extern typeof (_libc_intl_domainname) _libc_intl_domainname asm("__gi__libc_intl_domainname") __attribute__((visibility("hidden"))); |