Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] View of /tests/rtest/tests/consts1/consts1.diderot
ViewVC logotype

View of /tests/rtest/tests/consts1/consts1.diderot

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5090 - (download) (annotate)
Sun Jul 16 19:38:40 2017 UTC (22 months, 4 weeks ago) by jhr
File size: 911 byte(s)
  working on regression tests
#version 2

/* consts1.diderot
 *
 * Test overriding constant definitions from the command line.  This test targets
 * basic value types.
 *
 * This code is part of the Diderot Project (http://diderot-language.cs.uchicago.edu)
 *
 * COPYRIGHT (c) 2017 The University of Chicago
 * All rights reserved.
 */

const bool c1 = true;
const bool c2 = false;
const int c3 = 17;
const int c4;
const real c5 = 1.0;
const real c6 = 1.0;
const real c7 = 1.0;
const real c8 = 1.0;
const string c9 = "default";

initialize {
    print ("c1 = ", c1, "\n");
    print ("c2 = ", c2, "\n");
    print ("c3 = ", c3, "\n");
    print ("c4 = ", c4, "\n");
    print ("c5 = ", c5, "\n");
    print ("c6 = ", c6, "\n");
    print ("c7 = ", c7, "\n");
    print ("c8 = ", c8, "\n");
    print ("c9 = \"", c9, "\"\n");
}

strand dummy () {
    output int out = 0;
    update { stabilize; }
}

create_collection { dummy() | i in 1..1 }

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0