Re: Simple C++ compiler test. How does yours fare?

From: Otto Stolz (Otto.Stolz@uni-konstanz.de)
Date: Mon Feb 03 1997 - 07:06:36 EST


On Feb 2, 14:05, Doug Schiffer <dschiffer@servtech.com> wrote:
> I coded a very simple test of the level of support for
> wide character strings in a C/C++ compiler. [...]
> ===========================
> 4E00 <Han character>
> 0020
> 0069 i
> 0073 s
> 0020
...
Of course, the program, as given, should rather print:
  4E00 <Han character>
  0020
  003D =
  0020
...

> Anyone want to try other compilers & platforms?

The program compiles and executes just fine under the following
C++ compilers installed in our IRIX64 system, release 6.2:
- cc: the SGI C++ compiler (64bit)
- NCC: Silicon Graphics 32bit C++ compiler
- DCC: SGI Delta/C++ compiler (32bit)

The GNU C compiler, gcc, did not issue any error messages, but the compiled
object program did not print anything (I may have invoked this compiler with
inappropriate arguments, but I do not have the time to explore gcc's idio-
syncracies).

Best wishes,
   Otto Stolz



This archive was generated by hypermail 2.1.2 : Tue Jul 10 2001 - 17:20:33 EDT