diff options
author | Tavian Barnes <tavianator@gmail.com> | 2010-02-02 22:45:20 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2010-02-02 22:49:26 -0500 |
commit | 3f660a9b219b03bd5188cd4f0da9a58f507a933a (patch) | |
tree | 57162550b6c390cb0bf1ab143cee5bebda3a6ed8 /tests/dimension | |
parent | 80555a542f522d70fd0cb98227db005805f0c184 (diff) | |
download | dimension-3f660a9b219b03bd5188cd4f0da9a58f507a933a.tar.xz |
Support #ifdef and #ifndef.
Diffstat (limited to 'tests/dimension')
-rw-r--r-- | tests/dimension/directives.pov | 4 | ||||
-rwxr-xr-x | tests/dimension/directives.sh | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/tests/dimension/directives.pov b/tests/dimension/directives.pov index 187189f..94e613f 100644 --- a/tests/dimension/directives.pov +++ b/tests/dimension/directives.pov @@ -26,6 +26,10 @@ #declare Unused = -1; #undef Unused +#ifdef (Unused) + Illegal +#end + #if (#if (1 = 1) 0 #end = 0 & 0) `Illegal #else diff --git a/tests/dimension/directives.sh b/tests/dimension/directives.sh index e24a62a..198e25b 100755 --- a/tests/dimension/directives.sh +++ b/tests/dimension/directives.sh @@ -26,6 +26,9 @@ directives_exp="$(echo -n \ #local (identifier "Color") = rgb < (integer "1") , (integer "0") , (integer "1") > ; #declare (identifier "Unused") = - (integer "1") ; #undef (identifier "Unused") + #ifdef \( (identifier "Unused") \) + (identifier "Illegal") + #end #if \( #if \( (integer "1") = (integer "1") \) (integer "0") #end = (integer "0") & (integer "0") \) error (identifier "Illegal") #else |