summaryrefslogtreecommitdiffstats
path: root/tests/dimension/directives.sh
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-02-02 22:45:20 -0500
committerTavian Barnes <tavianator@gmail.com>2010-02-02 22:49:26 -0500
commit3f660a9b219b03bd5188cd4f0da9a58f507a933a (patch)
tree57162550b6c390cb0bf1ab143cee5bebda3a6ed8 /tests/dimension/directives.sh
parent80555a542f522d70fd0cb98227db005805f0c184 (diff)
downloaddimension-3f660a9b219b03bd5188cd4f0da9a58f507a933a.tar.xz
Support #ifdef and #ifndef.
Diffstat (limited to 'tests/dimension/directives.sh')
-rwxr-xr-xtests/dimension/directives.sh3
1 files changed, 3 insertions, 0 deletions
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