]> granicus.if.org Git - clang/commitdiff
Add new test
authorNate Begeman <natebegeman@mac.com>
Fri, 7 Mar 2008 20:04:49 +0000 (20:04 +0000)
committerNate Begeman <natebegeman@mac.com>
Fri, 7 Mar 2008 20:04:49 +0000 (20:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48018 91177308-0d34-0410-b5e6-96231b3b80d8

test/Sema/callingconv.c [new file with mode: 0644]

diff --git a/test/Sema/callingconv.c b/test/Sema/callingconv.c
new file mode 100644 (file)
index 0000000..fa0af76
--- /dev/null
@@ -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)}}
+}