This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
38
unikernel/duniverse/cppo/test/tuple.cppo
Normal file
38
unikernel/duniverse/cppo/test/tuple.cppo
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
#if (2 + 2, 5) < (4, 5)
|
||||
mountain
|
||||
#error ""
|
||||
#else
|
||||
pistachios
|
||||
#endif
|
||||
|
||||
#if (3 * 3) = 10 - 1
|
||||
trees
|
||||
#else
|
||||
rocks
|
||||
#error ""
|
||||
#endif
|
||||
|
||||
#if (1) = (1)
|
||||
waves
|
||||
#else
|
||||
sharks
|
||||
#error ""
|
||||
#endif
|
||||
|
||||
|
||||
#define x 11
|
||||
#if (x, 2) <> (x, 4/2)
|
||||
honey
|
||||
#error ""
|
||||
#else
|
||||
bees
|
||||
#endif
|
||||
|
||||
#define tuple (0, -5, 3)
|
||||
#define tuple2 tuple
|
||||
#if (0, -5, x) > tuple2
|
||||
steamboat
|
||||
#else
|
||||
koalas
|
||||
#error ""
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue