[patch]: Add push_macro/pop_macro feature for all targets by moving it from C frontent into libcpp

Kai Tietz ktietz70@googlemail.com
Wed Nov 4 18:18:00 GMT 2009


2009/11/4 Dave Korn <dave.korn.cygwin@googlemail.com>:
> Kai Tietz wrote:
>
>> ChangeLog for gcc/testsuite
>>
>> 2009-11-04  Kai Tietz  <kai.tietz@onevision.com>
>>
>>       * g++.dg/torture/pushpop_macro.C: New testcase.
>>       * gcc.c-torture/execute/pushpop_macro.c: New testcase.
>
>  We have a C and C++ common dir in the testsuite now, I think you could
> probably just put one copy of the testcase in there?  Not sure if it does
> execute tests or just compile tests, but in that case you could just tweak the
> testcase so that instead of defining the underscore to 2 or 1, you could
> define it to 2 or something that creates a syntax or link error.
>
>     cheers,
>      DaveK

Well, as this feature is more or less IMHO a torture testcase and the
C and C++ cases are different, as exactly at the moment we have a
working C version, but C++ fails badly, I think they are well placed
where they are. If it would be better to make out of those testcase
compile-only tests is IMHO more an esthetically question.
But good to know that there is now a common C/C++ directory. Thanks
for this head up.

Cheers,
Kai


-- 
|  (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination



More information about the Gcc-patches mailing list