[cfe-commits] r48018 - /cfe/trunk/test/Sema/callingconv.c

Nate Begeman natebegeman at mac.com
Fri Mar 7 12:04:49 PST 2008


Author: sampo
Date: Fri Mar  7 14:04:49 2008
New Revision: 48018

URL: http://llvm.org/viewvc/llvm-project?rev=48018&view=rev
Log:
Add new test

Added:
    cfe/trunk/test/Sema/callingconv.c

Added: cfe/trunk/test/Sema/callingconv.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/callingconv.c?rev=48018&view=auto

==============================================================================
--- cfe/trunk/test/Sema/callingconv.c (added)
+++ cfe/trunk/test/Sema/callingconv.c Fri Mar  7 14:04:49 2008
@@ -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)}}
+}





More information about the cfe-commits mailing list