blob: 5e4c0c2d1eb4d06e8d61b07b26f4148ae39cf91c [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: we need to fix the "BoolArgument<"IsMSDeclSpec">"
4// hack in Attr.td for attribute "Aligned".
5
6// CHECK: int x __attribute__((aligned(4, 0)));
7int x __attribute__((aligned(4)));
8
Richard Smith5cd532c2013-01-29 01:24:26 +00009// 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 Han51d8c522013-01-24 16:46:58 +000012
13// CHECK: void foo() __attribute__((const));
14void foo() __attribute__((const));
15
16// CHECK: void bar() __attribute__((__const));
17void bar() __attribute__((__const));