diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2009-11-09 18:38:53 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2009-11-09 18:38:53 +0000 |
commit | e4310c8273a9f7f0f32fa180b02acf29a29aa18c (patch) | |
tree | dfcdea44409291535faa78fde22575ea0fe0f102 /clang/test/Sema/callingconv.c | |
parent | a8ab71bad7826ef51a90fba29f50cc5a37eafadf (diff) | |
download | bcm5719-llvm-e4310c8273a9f7f0f32fa180b02acf29a29aa18c.tar.gz bcm5719-llvm-e4310c8273a9f7f0f32fa180b02acf29a29aa18c.zip |
Add support for cdecl attribute. (As far as I know, it doesn't affect CodeGen
unless we start implementing command-line switches which override the default
calling convention, so the effect is mostly to silence unknown attribute
warnings.)
llvm-svn: 86571
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 102115b3bf2..f65aab463f5 100644 --- a/clang/test/Sema/callingconv.c +++ b/clang/test/Sema/callingconv.c @@ -17,3 +17,7 @@ void __attribute__((fastcall)) test1(void) { void __attribute__((fastcall)) test2(int a, ...) { // expected-error {{variadic function cannot use 'fastcall' calling convention}} } + +void __attribute__((cdecl)) ctest0() {} + +void __attribute__((cdecl(1))) ctest1(float x) {} // expected-error {{attribute requires 0 argument(s)}} |