From: Nate Begeman Date: Fri, 7 Mar 2008 20:04:49 +0000 (+0000) Subject: Add new test X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b6789ca9ca0f43551edd2cdf4b9ebc35ea4c7247;p=clang Add new test git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48018 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Sema/callingconv.c b/test/Sema/callingconv.c new file mode 100644 index 0000000000..fa0af76834 --- /dev/null +++ b/test/Sema/callingconv.c @@ -0,0 +1,10 @@ +// RUN: clang %s -fsyntax-only -verify + +void __attribute__((fastcall)) foo(float *a) { +} + +void __attribute__((stdcall)) bar(float *a) { +} + +void __attribute__((fastcall(1))) baz(float *a) { // expected-error {{attribute requires 0 argument(s)}} +}