diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-01-29 01:24:26 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-01-29 01:24:26 +0000 |
commit | 0cdcc98200b8b2c0dea21bae433677f88aae597c (patch) | |
tree | 76a13eca3ee3776405ecde8c75ba15be76d1f8bc /clang/test/SemaCXX/attr-print.cpp | |
parent | 3c94737fb71acdc3dc91255d11c3ccba496aba8a (diff) | |
download | bcm5719-llvm-0cdcc98200b8b2c0dea21bae433677f88aae597c.tar.gz bcm5719-llvm-0cdcc98200b8b2c0dea21bae433677f88aae597c.zip |
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
Diffstat (limited to 'clang/test/SemaCXX/attr-print.cpp')
-rw-r--r-- | clang/test/SemaCXX/attr-print.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
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)); |