"Fossies" - the Fresh Open Source Software Archive

Member "dmd-2.089.0/test/compilable/test19227.d" (2 Nov 2019, 273 Bytes) of package /linux/misc/dmd-2.089.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) D source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 // https://issues.dlang.org/show_bug.cgi?id=19227
    2 
    3 struct S
    4 {
    5     float f;
    6 }
    7 
    8 struct T
    9 {
   10     cfloat cf;
   11 }
   12 
   13 void main()
   14 {
   15     static assert(S.init is S.init);
   16     static assert(S.init != S.init);
   17 
   18     static assert(T.init is T.init);
   19     static assert(T.init != T.init);
   20 }
   21