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
 [diderot] / tests / rtest / tests / consts1 / consts1.diderot

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

Revision 5082 - (download) (annotate)
Sun Jul 16 13:45:24 2017 UTC (23 months ago) by jhr
File size: 923 byte(s)
```  working on regression tests
```
```#version 2

/* consts1.diderot
*
* Test overriding constant definitions from the command line
*
* 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";

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

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