[LLVMdev] static keyword @ Function declarators...

Duncan Sands baldrick at free.fr
Wed Sep 12 00:41:25 PDT 2012


Hi Umesh, this sounds like a question for the clang mailing list, not this one.

Ciao, Duncan.

On 12/09/12 09:16, Umesh Kalappa wrote:
> 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 expression.
>
> 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 ??
>
>
> Thanks
> ~Umesh
>
>
>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>




More information about the llvm-dev mailing list