source: CIVL/mods/dev.civl.abc/examples/preproc/expressions.txt

main
Last change on this file was aad342c, checked in by Stephen Siegel <siegel@…>, 3 years ago

Performing huge refactor to incorporate ABC, GMC, and SARL into CIVL repo and use Java modules.

git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@5664 fb995dde-84ed-4084-dfe6-e5aef3e2452c

  • Property mode set to 100644
File size: 301 bytes
Line 
1/* Test for expression evaluation. Modulo white space, the output should
2 * be "RIGHT RIGHT RIGHT ...".
3 */
4
5#define X 3
6#define Y 2
7#if X+Y==5
8RIGHT
9#else
10#error "WRONG 1"
11#endif
12
13#if X*Y<=6
14RIGHT
15#else
16#error "WRONG 2"
17#endif
18
19#if defined X && defined(Y) && X>3
20#error "WRONG 3"
21#else
22RIGHT
23#endif
Note: See TracBrowser for help on using the repository browser.