X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=parsetest%2Fcp_error037.c;h=42edf672c5547ce4a4770882973bb64b5fc8d99e;hb=43298905d2d0a8eabe545794d056bbd7a104b9bf;hp=976e3bcfadccc4f8331d213a8fe6fe2ec77aa51c;hpb=49fdca86abeee19e52bb2a8c752e493d0366f8d2;p=cparser diff --git a/parsetest/cp_error037.c b/parsetest/cp_error037.c index 976e3bc..42edf67 100644 --- a/parsetest/cp_error037.c +++ b/parsetest/cp_error037.c @@ -1,4 +1,13 @@ extern __inline__ unsigned int ntohl(unsigned int); +__inline__ unsigned int ntohl2(unsigned int); +static __inline__ unsigned int ntohl3(unsigned int); + +extern __inline__ unsigned int xntohl(unsigned int a) { return 1; } +__inline__ unsigned int xntohl2(unsigned int a) { return 2; } +static __inline__ unsigned int xntohl3(unsigned int a) { return 3; } + +// only xntohl2 should be globally visible +// the others should not even exist in the object file int main(void) {