diff options
Diffstat (limited to 'usr.bin/m4/tests/gnueval.m4')
-rw-r--r-- | usr.bin/m4/tests/gnueval.m4 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/usr.bin/m4/tests/gnueval.m4 b/usr.bin/m4/tests/gnueval.m4 new file mode 100644 index 0000000..9e7b576 --- /dev/null +++ b/usr.bin/m4/tests/gnueval.m4 @@ -0,0 +1,7 @@ +dnl $FreeBSD$ +dnl $OpenBSD: src/regress/usr.bin/m4/gnueval.m4,v 1.1 2012/04/12 16:58:15 espie Exp $ +dnl exponentiation is right associative +eval(`4**2**3') +dnl priority between unary operators and * +eval(`4**2*3') +eval(`-4**3') |