[cfe-dev] static keyword @ Function declarators...

Umesh Kalappa umesh.kalappa0 at gmail.com
Wed Sep 12 00:16:46 PDT 2012

Hi All ,
Was going through the C99 standard @
http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1124.pdf which states that
the Function declarators as

direct-declarator ( parameter-type-list )
parameter-list: parameter-declaration
                      parameter-list , parameter-declaration
parameter-declaration: declaration-specifiers declarator
                              declaration-specifiers abstract-declarator

direct-declarator [ *static* type-qualifier-listopt assignment-expression ]

where The optional type qualifiers and the keyword *static *shall appear
only in a declaration of a function parameter with an array type, and then
only in the outermost
array type derivation and then for each call to the function, the value of
the corresponding actual argument shall provide access to the first element
of an array with at least as many elements as specified by the size

for example : int func(array[static int i =100) ;

I'm trying to get  the test case for the above function prototype
??? Please someone can shed some lights here ??

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20120912/8ed18ae8/attachment.html>

More information about the cfe-dev mailing list