blob: 419f608c04fc13423b5bcb80d523d14bf9a44f0a [file] [log] [blame]
Richard Smith5cd532c2013-01-29 01:24:26 +00001// RUN: %clang_cc1 %s -ast-print -fms-extensions | FileCheck %s
Michael Han51d8c522013-01-24 16:46:58 +00002
3// FIXME: align attribute print
4
5// CHECK: int x __attribute__((aligned(4, 0)));
6int x __attribute__((aligned(4)));
7
Richard Smith5cd532c2013-01-29 01:24:26 +00008// FIXME: Print this at a valid location for a __declspec attr.
9// CHECK: int y __declspec(align(4, 1));
10__declspec(align(4)) int y;
Michael Han51d8c522013-01-24 16:46:58 +000011
12// CHECK: void foo() __attribute__((const));
13void foo() __attribute__((const));
14
15// CHECK: void bar() __attribute__((__const));
16void bar() __attribute__((__const));