www.digitalmars.com         C & C++   DMDScript  

c++ - C++ tests: not passed

hi i've maked some tests to know if dmc supports feauteres that i need for
my framework

t1 : pass
t2 : not sure it's permitted by c++ specs, not pass
t3 : not pass (output doesn't match expected output included at end of file,
the c++ spec permit the expected output?)

i like to know if i'm on the wrong way (specs don't permit some of things)
or if simply there isn't compilers around that support c++ spec features,
i've tryed bcc32 5.5 5.6(borland c++ builder 6) gcc  3.2.3(mingw) vcc++ 6
vcc++ 7.net
in future this features will be supported in dmc??

Michele


begin 666 t1.cpp
M#0H-"G1E;7!L871E/'1Y<&5N86UE(%0^#0IC;&%S<R!T97-T,0T*>PT*"7!U
M8FQI8SH-" D)5"!M96UB.PT*?3L-" T*:6YT(&UA:6XH*0T*>PT*"71E<W0Q
A/'1E<W0Q/&EN=#X /B!O.PT*"7)E='5R;B P.PT*?0T*
`
end

begin 666 t2.cpp
M#0HC:6YC;'5D92 \<W1D:6\N:#X-" T*=&5M<&QA=&4\='EP96YA;64 5"QB
M;V]L(&9L86<^#0IC;&%S<R!T97-T, T*>PT*"7!U8FQI8SH-" D)5"!M96UB
M.PT*#0H)"71E;7!L871E/&)O;VP 8CX-" D)=F]I9"!T;65T*"D-" D)>PT*
M"0D)<')I;G1F*")T96UP;&%T92!T;65T/#Y<;B(I.PT*"0E]#0H)"71E;7!L
M871E/#X-" D)=F]I9"!T;65T/'1R=64^*"D-" D)>PT*"0D)<')I;G1F*")T
M96UP;&%T92!T;65T/'1R=64^7&XB*3L-" D)?0T*"0ET96UP;&%T93P^#0H)
M"79O:60 =&UE=#QF86QS93XH*0T*"0E[#0H)"0EP<FEN=&8H(G1E;7!L871E
M('1M970\9F%L<V4^7&XB*3L-" D)?0T*#0H)"79O:60 ;7-W:71C:" I#0H)
M"7L-" D)"7!R:6YT9B B=&UE=" I7&XB*3L-" D)"71E;7!L871E('1M970\
M9FQA9SXH*3L-" D)?0T*?3L-" T*:6YT(&UA:6XH*0T*>PT*"71E<W0R/&-H
M87(L=')U93X ;S$[#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