Re: syntactically comprehensive test program



"santosh" <santosh.k83@xxxxxxxxx> writes:
nob...@xxxxxxxxx wrote:
I need a syntactically comprehensive test program to test a C parser
on. Does anyone know where I might find a program that uses all
syntactical elements of the language and combines them in cunning/
realistic ways so that one might be confident that a pass on this
program will mean a pass on any valid C program.

Big ask, but I thought someone might know of a suitable file(s).

gcc comes bundled with it's own test routines. I also think P.J.
Plauger's dinkumware.com offers to certify compilers and libraries for
standard conformance.

I haven't looked at gcc's test suite. I'm sure it includes tests for
gcc-specific extensions. Before using it, make sure that those tests
are cleanly separated from the ones that use only standard C.

--
Keith Thompson (The_Other_Keith) kst-u@xxxxxxx <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
.



Relevant Pages

  • Re: syntactically comprehensive test program
    ... syntactical elements of the language and combines them in cunning/ ... Plauger's dinkumware.com offers to certify compilers and libraries for ... standard conformance. ...
    (comp.lang.c)
  • Re: syntactically comprehensive test program
    ... syntactical elements of the language and combines them in cunning/ ... realistic ways so that one might be confident that a pass on this ... There's a few gazillion more here: ...
    (comp.lang.c)