This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
47
unikernel/duniverse/cppo/test/cond.cppo
Normal file
47
unikernel/duniverse/cppo/test/cond.cppo
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
#if 1 = 1
|
||||
#else
|
||||
#error "ignored #else (?)"
|
||||
#endif
|
||||
|
||||
#if true
|
||||
banana
|
||||
#elif false
|
||||
apple
|
||||
#error "ignored #elif (?)"
|
||||
#endif
|
||||
|
||||
#if false
|
||||
earthworm
|
||||
#error ""
|
||||
#elif true
|
||||
apricot
|
||||
#endif
|
||||
|
||||
#if false
|
||||
cuckoo
|
||||
#error ""
|
||||
#else
|
||||
#if false
|
||||
egg
|
||||
#error ""
|
||||
#else
|
||||
nest
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define X 3
|
||||
|
||||
#if false
|
||||
helicopter
|
||||
#error ""
|
||||
#elif false
|
||||
ocean
|
||||
#error ""
|
||||
#else
|
||||
#if X = 12
|
||||
sand
|
||||
#error ""
|
||||
#elif 4 * X = 12
|
||||
sea urchin
|
||||
#endif
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue