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

SCM Repository

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

View of /tests/rtest/tests/consts3/consts3.diderot

Parent Directory Parent Directory | Revision Log Revision Log


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

/* consts3.diderot
 *
 * Test overriding constant definitions from the command line.  This test targets
 * sequences.
 *
 * 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 int[] c1 = {42};
const bool[3] c2 = {true, false, true};
const real[2] c3 = {1, 2};
const vec2[2] c4;

/* TODO: strings, higher-order tensors, sequences */

initialize {
    print ("c1 = ", c1, "\n");
    print ("c2 = ", c2, "\n");
    print ("c3 = ", c3, "\n");
    print ("c4 = ", c4, "\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