Module Name: pcc-tests
Committed By: plunky
Date: Thu Nov 10 09:18:30 UTC 2011
Modified Files:
pcc-tests/regress/c99: inline001.c
Log Message:
make this test pass, by explicitly specifying extern and static
the rationale being, that for inline functions:
static means that the function as listed is always
used for this translation unit, and no external
reference is created
extern means that an externally callable reference
is created and the function is always used for this
translation unit
neither means that the function *may* be used as
presented in this translation unit. This means for
pcc that if -xinline is given, it will be used and
otherwise not.
So, without either extern or static specified, there
would need to be a linked libc version available
(which there is not, for "foo")
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 pcc-tests/regress/c99/inline001.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.