Opened 8 years ago

Last modified 8 years ago

#72 closed defect

starting main — at Version 1

Reported by: pabuhr Owned by:
Priority: trivial Component: cfa-cc
Version: 1.0 Keywords:
Cc:

Description (last modified by pabuhr)

gcc accepts the following as the starting main routine:

int main( const volatile int argc, const char * volatile * const argv ) {}

but cfa does not:

cfa test.c
CFA Version 1.0.0 (debug)
test.c: In function 'invoke_main':
test.c:9:144: warning: passing argument 2 of '__main__Fi_CViCPVPCc__1' from incompatible pointer type [-Wincompatible-pointer-types]
test.c:7:12: note: expected 'const char * volatile* const' but argument is of type 'char **'
 int main( const volatile int argc, const char * volatile * const argv ) {}

Change History (1)

comment:1 by pabuhr, 8 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.