blob: 2e7478904f1246b81735eba372eec9023fe14b2d [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
Michael Hana31f65b2013-02-01 01:19:17 +00003// CHECK: int x __attribute__((aligned(4)));
Michael Han51d8c522013-01-24 16:46:58 +00004int x __attribute__((aligned(4)));
5
Richard Smith5cd532c2013-01-29 01:24:26 +00006// FIXME: Print this at a valid location for a __declspec attr.
Michael Hana31f65b2013-02-01 01:19:17 +00007// CHECK: int y __declspec(align(4));
Richard Smith5cd532c2013-01-29 01:24:26 +00008__declspec(align(4)) int y;
Michael Han51d8c522013-01-24 16:46:58 +00009
10// CHECK: void foo() __attribute__((const));
11void foo() __attribute__((const));
12
13// CHECK: void bar() __attribute__((__const));
14void bar() __attribute__((__const));
Michael Han353299a2013-01-29 04:13:20 +000015
16// FIXME: Print this with correct format and order.
17// CHECK: void foo1() __attribute__((pure)) __attribute__((noinline));
18void foo1() __attribute__((noinline, pure));