Connecting Tech Pros Worldwide Help | Site Map
 
 
LinkBack Thread Tools Search this Thread
  #1  
Old August 27th, 2008, 12:15 PM
oksid
Guest
 
Posts: n/a
Default C99 test suite ?

Hello,

I'm writing a C99 preprocessor and I want to check its
compliance with the ISO standard.

I would like to know what's the best C99 test suite ?
GCC seems to have a large set of test files. Is there
something better available ?

Thanks in advance,
Jean-Marc Lienher
  #2  
Old August 27th, 2008, 03:35 PM
Eric Sosman
Guest
 
Posts: n/a
Default Re: C99 test suite ?

oksid wrote:
Quote:
Hello,
>
I'm writing a C99 preprocessor and I want to check its
compliance with the ISO standard.
>
I would like to know what's the best C99 test suite ?
GCC seems to have a large set of test files. Is there
something better available ?
Jacob Navia has published his C99 test suite in the
currently-raging thread "C99 portability challenge." You'll
have to make up your own mind about whether his conformance
test is "better" than others you've found.

--
Eric.Sosman@sun.com
  #3  
Old August 27th, 2008, 03:35 PM
jacob navia
Guest
 
Posts: n/a
Default Re: C99 test suite ?

Eric Sosman wrote:
Quote:
oksid wrote:
Quote:
>Hello,
>>
>I'm writing a C99 preprocessor and I want to check its
>compliance with the ISO standard.
>>
>I would like to know what's the best C99 test suite ?
>GCC seems to have a large set of test files. Is there
>something better available ?
>
Jacob Navia has published his C99 test suite in the
currently-raging thread "C99 portability challenge." You'll
have to make up your own mind about whether his conformance
test is "better" than others you've found.
>
This is not true, as you well know. Nowhere did I
say that it is a "conformance suite".



--
jacob navia
jacob at jacob point remcomp point fr
logiciels/informatique
http://www.cs.virginia.edu/~lcc-win32
  #4  
Old August 28th, 2008, 03:25 AM
Eric Sosman
Guest
 
Posts: n/a
Default Re: C99 test suite ?

jacob navia wrote:
Quote:
Eric Sosman wrote:
Quote:
>oksid wrote:
Quote:
>>Hello,
>>>
>>I'm writing a C99 preprocessor and I want to check its
>>compliance with the ISO standard.
>>>
>>I would like to know what's the best C99 test suite ?
>>GCC seems to have a large set of test files. Is there
>>something better available ?
>>
> Jacob Navia has published his C99 test suite in the
>currently-raging thread "C99 portability challenge." You'll
>have to make up your own mind about whether his conformance
>test is "better" than others you've found.
>>
>
This is not true, as you well know. Nowhere did I
say that it is a "conformance suite".
While it's true you didn't use the word "conformance" at
all, you did advertise the program as being able to "test"
whether a particular system did or did not have a C99 compiler.
Since a compiler is not a C99 compiler unless it conforms to
the C99 standard, any such test would necessarily need to be
a conformance test. Here's the syllogism:

Major premise: A test that indicates whether a given
compiler does or does not support C99 is a C99 conformance
test.

Minor premise: In JN's opinion, his program tests whether a
given compiler does or does not support C99.

Conclusion: Therefore, in JN's opinion his program is a C99
conformance test.

Q.E.D.

Perhaps if you'd spent a few moments pondering the difficulty
of the test you proposed to make, you'd have been less hasty to
make the attempt.

--
Eric Sosman
esosman@ieee-dot-org.invalid
  #5  
Old August 28th, 2008, 03:25 AM
Richard Heathfield
Guest
 
Posts: n/a
Default Re: C99 test suite ?

Eric Sosman said:
Quote:
jacob navia wrote:
Quote:
>Eric Sosman wrote:
<snip>
Quote:
Quote:
Quote:
>> Jacob Navia has published his C99 test suite in the
>>currently-raging thread "C99 portability challenge." You'll
>>have to make up your own mind about whether his conformance
>>test is "better" than others you've found.
>>
>This is not true, as you well know. Nowhere did I
>say that it is a "conformance suite".
>
While it's true you didn't use the word "conformance" at
all, you did advertise the program as being able to "test"
whether a particular system did or did not have a C99 compiler.
Right. The most relevant wording, it seems, is this: "My basic idea is to
see which systems do not have a compiler that supports standard C."

<snip>
Quote:
Perhaps if you'd spent a few moments pondering the difficulty
of the test you proposed to make, you'd have been less hasty to
make the attempt.
For one thing, the program does not demonstrate the "broken" VLA semantics
of gcc.

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 205,338 network members.