[cfe-dev] Declaring function prototype with typedef

Sanghyeon Seo sanxiyn at gmail.com
Sun Nov 11 17:16:34 PST 2007


No patch this time. Sorry.

By the way, all patches and tests I reported so far came from trying
to -fsyntax-only compile Lua and Expat with Clang. Both are GCC -Wall
clean and written in portable standard C.

// 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



More information about the cfe-dev mailing list