Richard Smith | 5cd532c | 2013-01-29 01:24:26 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 %s -ast-print -fms-extensions | FileCheck %s |
Michael Han | 51d8c52 | 2013-01-24 16:46:58 +0000 | [diff] [blame] | 2 | |
| 3 | // FIXME: we need to fix the "BoolArgument<"IsMSDeclSpec">" |
| 4 | // hack in Attr.td for attribute "Aligned". |
| 5 | |
| 6 | // CHECK: int x __attribute__((aligned(4, 0))); |
| 7 | int x __attribute__((aligned(4))); |
| 8 | |
Richard Smith | 5cd532c | 2013-01-29 01:24:26 +0000 | [diff] [blame] | 9 | // FIXME: Print this at a valid location for a __declspec attr. |
| 10 | // CHECK: int y __declspec(align(4, 1)); |
| 11 | __declspec(align(4)) int y; |
Michael Han | 51d8c52 | 2013-01-24 16:46:58 +0000 | [diff] [blame] | 12 | |
| 13 | // CHECK: void foo() __attribute__((const)); |
| 14 | void foo() __attribute__((const)); |
| 15 | |
| 16 | // CHECK: void bar() __attribute__((__const)); |
| 17 | void bar() __attribute__((__const)); |
Richard Smith | cae4a5c | 2013-01-29 02:31:57 +0000 | [diff] [blame^] | 18 | |
| 19 | // FIXME: Print these at a valid location for these attributes. |
| 20 | // CHECK: int *p32 __ptr32; |
| 21 | int * __ptr32 p32; |
| 22 | |
| 23 | // CHECK: int *p64 __ptr64; |
| 24 | int * __ptr64 p64; |