brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · 211e61a Raw
41 lines · c
1// RUN: %clang_cc1 %s -ast-print -fms-extensions | FileCheck %s2 3// CHECK: int x __attribute__((aligned(4)));4int 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));10short arr[3] __attribute__((aligned));11 12// CHECK: int foo(void) __attribute__((const));13int foo(void) __attribute__((const));14 15// CHECK: int bar(void) __attribute__((__const));16int bar(void) __attribute__((__const));17 18// CHECK: int * __ptr32 p32;19int * __ptr32 p32;20 21// CHECK: int * __ptr64 p64;22int * __ptr64 p64;23 24// CHECK: int * __uptr __ptr32 p32_2;25int * __uptr __ptr32 p32_2;26 27// CHECK: int * __sptr __ptr64 p64_2;28int * __sptr __ptr64 p64_2;29 30// CHECK: int * __uptr __ptr32 p32_3;31int * __uptr __ptr32 p32_3;32 33// CHECK: int * __sptr * __ptr32 ppsp32;34int * __sptr * __ptr32 ppsp32;35 36// CHECK: __attribute__((availability(macos, strict, introduced=10.6)));37void f6(int) __attribute__((availability(macosx,strict,introduced=10.6)));38 39// CHECK: _libc_intl_domainname asm("__gi__libc_intl_domainname") __attribute__((visibility("hidden")));40extern const char _libc_intl_domainname[]; extern typeof (_libc_intl_domainname) _libc_intl_domainname asm("__gi__libc_intl_domainname") __attribute__((visibility("hidden")));41