"Fossies" - the Fresh Open Source Software Archive

Member "dmd-2.089.0/test/fail_compilation/fail4559.d" (2 Nov 2019, 418 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 /*
    2 REQUIRED_ARGS: -o- -de
    3 TEST_OUTPUT:
    4 ---
    5 fail_compilation/fail4559.d(13): Deprecation: use `{ }` for an empty statement, not `;`
    6 fail_compilation/fail4559.d(19): Deprecation: use `{ }` for an empty statement, not `;`
    7 fail_compilation/fail4559.d(21): Deprecation: use `{ }` for an empty statement, not `;`
    8 ---
    9 */
   10 
   11 void foo()
   12 {
   13     int x;;
   14     enum A
   15     {
   16         a,
   17         b,
   18         c
   19     };
   20 
   21     void bar() {};
   22 }