aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation
diff options
authorMichael Stefaniuc <mstefani@redhat.com>2007-05-16 13:12:42 +0200
committerJosh Triplett <josh@freedesktop.org>2007-05-22 15:33:58 -0700
commit7efd55ea22b676c85beaefcae04c66b2be1911cc (patch)
tree44767038a51bbf0ce4e2e2b8fad6b0d2d745a495 /validation
parentcbf8161245f103459ed5a1b290162a57266dbf86 (diff)
downloadsparse-dev-7efd55ea22b676c85beaefcae04c66b2be1911cc.tar.gz
Add test for typedef on pointer to function with stdcall attribute.
Signed-off-by: Michael Stefaniuc <mstefani@redhat.com>
Diffstat (limited to 'validation')
-rw-r--r--validation/calling-convention-attributes.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/validation/calling-convention-attributes.c b/validation/calling-convention-attributes.c
index 05467546..1bbe575c 100644
--- a/validation/calling-convention-attributes.c
+++ b/validation/calling-convention-attributes.c
@@ -2,3 +2,6 @@ extern void __attribute__((cdecl)) f1(void);
extern void __attribute__((__cdecl__)) f2(void);
extern void __attribute__((stdcall)) f3(void);
extern void __attribute__((__stdcall__)) f4(void);
+
+typedef void (__attribute__((__stdcall__)) *f5)(void);
+typedef f5 f5ptr;