From 0cdcc98200b8b2c0dea21bae433677f88aae597c Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Tue, 29 Jan 2013 01:24:26 +0000 Subject: Replace AS_MSTypespec with AS_Keyword, for representing any attribute spelled as a keyword. Rationalize existing attributes to use it as appropriate, and to not lie about some __declspec attributes being GNU attributes. In passing, remove a gross hack which was discarding attributes which we could handle. This results in us actually respecting the __pascal keyword again. llvm-svn: 173746 --- clang/test/SemaCXX/attr-print.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'clang/test/SemaCXX/attr-print.cpp') diff --git a/clang/test/SemaCXX/attr-print.cpp b/clang/test/SemaCXX/attr-print.cpp index 317ba4d1574..419f608c04f 100644 --- a/clang/test/SemaCXX/attr-print.cpp +++ b/clang/test/SemaCXX/attr-print.cpp @@ -1,12 +1,13 @@ -// RUN: %clang_cc1 %s -ast-print | FileCheck %s +// RUN: %clang_cc1 %s -ast-print -fms-extensions | FileCheck %s // FIXME: align attribute print // CHECK: int x __attribute__((aligned(4, 0))); int x __attribute__((aligned(4))); -// CHECK: int y __attribute__((align(4, 0))); -int y __attribute__((align(4))); +// FIXME: Print this at a valid location for a __declspec attr. +// CHECK: int y __declspec(align(4, 1)); +__declspec(align(4)) int y; // CHECK: void foo() __attribute__((const)); void foo() __attribute__((const)); -- cgit v1.2.3