views:

194

answers:

1

Hi all,

Chapter 6 Language of the C Standard defines all the different concepts, conversions, lexical elements, expressions, declarations, statements, blocks, external definitions and so on which are defined in the C standard.

I was wondering if there is a reference body of code anywhere which contains all these elements of the C language and which can be used to test tools, e.g. compilers, which process C code. Or am I being hopelessly naive?

Look forward to hearing from you!

Ham

+5  A: 

The google phrase you want is "c compiler test suite".

plinth
Many thanks - I had tried Google but with "C Reference Code" which didn't come up with much. I'll have a look at the GCC Test Suite, which is at least free.
Ham