[cfe-dev] Declaring function prototype with typedef

Sanghyeon Seo sanxiyn at gmail.com
Tue Nov 13 17:41:45 PST 2007


2007/11/12, Sanghyeon Seo <sanxiyn at gmail.com>:
> No patch this time. Sorry.

Okay, here is a patch. Attached.

> // RUN: clang -fsyntax-only -verify %s
>
> typedef int unary_int_func(int arg);
> unary_int_func add_one;
>
> int add_one(int arg) {
>     return arg + 1;
> }

-- 
Seo Sanghyeon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: typedef-prototype
Type: application/octet-stream
Size: 1747 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20071114/441921bf/attachment.obj>


More information about the cfe-dev mailing list