aboutsummaryrefslogtreecommitdiffhomepage
path: root/libslang/src/test/prep.sl
blob: ecf0ee745ccb3076d49849354104960b00449484 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
_debug_info = 1; () = evalfile ("inc.sl");

print ("Testing slprep ...");

public variable X = 0;

#ifdef FOO_MOO_TOO_KOO
failed ("ifdef");
#else
X = 1;
#endif
#if (X!=1)
failed ("X!=1");
#else
X=-1;
#endif

#if !eval(X==-1)
failed ("eval");
#else
  
print ("Ok\n");

exit (0);
#endif