2013-01-29 09:24:26 +08:00
|
|
|
// RUN: %clang_cc1 %s -ast-print -fms-extensions | FileCheck %s
|
2013-01-25 00:46:58 +08:00
|
|
|
|
2013-02-01 09:19:17 +08:00
|
|
|
// CHECK: int x __attribute__((aligned(4)));
|
2013-01-25 00:46:58 +08:00
|
|
|
int x __attribute__((aligned(4)));
|
|
|
|
|
2013-01-29 09:24:26 +08:00
|
|
|
// FIXME: Print this at a valid location for a __declspec attr.
|
2013-02-01 09:19:17 +08:00
|
|
|
// CHECK: int y __declspec(align(4));
|
2013-01-29 09:24:26 +08:00
|
|
|
__declspec(align(4)) int y;
|
2013-01-25 00:46:58 +08:00
|
|
|
|
|
|
|
// CHECK: void foo() __attribute__((const));
|
|
|
|
void foo() __attribute__((const));
|
|
|
|
|
|
|
|
// CHECK: void bar() __attribute__((__const));
|
|
|
|
void bar() __attribute__((__const));
|
2013-01-29 10:31:57 +08:00
|
|
|
|
|
|
|
// FIXME: Print these at a valid location for these attributes.
|
|
|
|
// CHECK: int *p32 __ptr32;
|
|
|
|
int * __ptr32 p32;
|
|
|
|
|
|
|
|
// CHECK: int *p64 __ptr64;
|
|
|
|
int * __ptr64 p64;
|