diff options
| author | Charles Davis <cdavis@mines.edu> | 2010-02-18 04:56:59 +0000 |
|---|---|---|
| committer | Charles Davis <cdavis@mines.edu> | 2010-02-18 04:56:59 +0000 |
| commit | 9fcead75eefdc7b359012610d73197015f0a0dd8 (patch) | |
| tree | 8a7e10169d637cf641ff9ff049dc337bd3868c36 /clang/test | |
| parent | c451027db973e6906112e698f1cfc1540453e807 (diff) | |
| download | bcm5719-llvm-9fcead75eefdc7b359012610d73197015f0a0dd8.tar.gz bcm5719-llvm-9fcead75eefdc7b359012610d73197015f0a0dd8.zip | |
Also don't warn about force_align_arg_pointer on function typedefs. (This will
break if you declare an actual function using that typedef. Come to think of it,
maybe I should make this part of the type.)
llvm-svn: 96570
Diffstat (limited to 'clang/test')
| -rw-r--r-- | clang/test/Sema/x86-attr-force-align-arg-pointer.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/test/Sema/x86-attr-force-align-arg-pointer.c b/clang/test/Sema/x86-attr-force-align-arg-pointer.c index 5c7582fe0fa..b406a77e044 100644 --- a/clang/test/Sema/x86-attr-force-align-arg-pointer.c +++ b/clang/test/Sema/x86-attr-force-align-arg-pointer.c @@ -16,4 +16,6 @@ void __attribute__((force_align_arg_pointer)) d(void) {} // Attribute is ignored on function pointer types. void (__attribute__((force_align_arg_pointer)) *p)(); typedef void (__attribute__((__force_align_arg_pointer__)) *p2)(); +// Attribute is also ignored on function typedefs. +typedef void __attribute__((force_align_arg_pointer)) e(void); |

