diff options
author | Charles Davis <cdavis@mines.edu> | 2010-02-24 02:27:18 +0000 |
---|---|---|
committer | Charles Davis <cdavis@mines.edu> | 2010-02-24 02:27:18 +0000 |
commit | 29967969722ee3d425a5f5456d02cf98d03971a2 (patch) | |
tree | eb61c1850b9690815e21f186c82d71a2110c449f /clang/test/Sema/callingconv.c | |
parent | a396e617b54e0ba138fa5db30d0893ecb7db3c32 (diff) | |
download | bcm5719-llvm-29967969722ee3d425a5f5456d02cf98d03971a2.tar.gz bcm5719-llvm-29967969722ee3d425a5f5456d02cf98d03971a2.zip |
When we encounter a function-specific attribute in a declaration specifier,
apply it only to the function itself, and never to the return type. Fixes part
of PR6408.
llvm-svn: 97015
Diffstat (limited to 'clang/test/Sema/callingconv.c')
-rw-r--r-- | clang/test/Sema/callingconv.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/Sema/callingconv.c b/clang/test/Sema/callingconv.c index 424db751b64..92a20572a2c 100644 --- a/clang/test/Sema/callingconv.c +++ b/clang/test/Sema/callingconv.c @@ -40,3 +40,7 @@ Handler H = foo; void ctest3(); void __attribute__((cdecl)) ctest3() {} +// PR6408 +typedef __attribute__((stdcall)) void (*PROC)(); +PROC __attribute__((cdecl)) ctest4(const char *x) {} + |