"Fossies" - the Fresh Open Source Software Archive

Member "ldc-1.9.0-src/tests/d2/dmd-testsuite/runnable/a17.d" (30 Apr 2018, 239 Bytes) of package /linux/misc/ldc-1.9.0-src.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 // EXTRA_SOURCES: imports/a17a.d
    2 
    3 module a17;
    4 
    5 import std.stdio;
    6 
    7 private import imports.a17a;
    8 
    9 class barx {
   10     this() { printf("barx\n"); }
   11 }
   12 
   13 
   14 int main()
   15 {
   16     foo2x f = new foo2x();
   17 //    f = new foo2x();
   18 //    f.x++;
   19 
   20     return 0;
   21 }