freebsd-nq/usr.bin/indent/tests/Makefile
Piotr Pawel Stefaniak bd2969a00d indent(1): Support binary integer literals.
This was done by Romain Tartière for PR123553. I initially thought that it would break code like this:
#define b00101010 -1
if (0 b00101010)
...

by joining 0 and b00101010 together. However, the real problem with that patch was that once it saw a 0, it assumed that the number was base 2, 8 or 16, ignoring base 10 floating point numbers. I fixed that.

I didn't copy the diagnostic part of the original patch as it seems out of scope of implementing binary integer literals formatting.

PR:		123553
Submitted by:	romain (original version)
Approved by:	pfg (mentor)
2017-05-18 17:15:58 +00:00

46 lines
1.2 KiB
Makefile

# $FreeBSD$
PACKAGE= tests
${PACKAGE}FILES+= binary.0
${PACKAGE}FILES+= binary.0.stdout
${PACKAGE}FILES+= comments.0
${PACKAGE}FILES+= comments.0.stdout
${PACKAGE}FILES+= declarations.0
${PACKAGE}FILES+= declarations.0.stdout
${PACKAGE}FILES+= elsecomment.0
${PACKAGE}FILES+= elsecomment.0.stdout
${PACKAGE}FILES+= elsecomment.0.pro
${PACKAGE}FILES+= float.0
${PACKAGE}FILES+= float.0.stdout
${PACKAGE}FILES+= label.0
${PACKAGE}FILES+= label.0.stdout
${PACKAGE}FILES+= label.0.pro
${PACKAGE}FILES+= list_head.0
${PACKAGE}FILES+= list_head.0.stdout
${PACKAGE}FILES+= nsac.0
${PACKAGE}FILES+= nsac.0.stdout
${PACKAGE}FILES+= nsac.0.pro
${PACKAGE}FILES+= offsetof.0
${PACKAGE}FILES+= offsetof.0.stdout
${PACKAGE}FILES+= sac.0
${PACKAGE}FILES+= sac.0.stdout
${PACKAGE}FILES+= sac.0.pro
${PACKAGE}FILES+= struct.0
${PACKAGE}FILES+= struct.0.stdout
${PACKAGE}FILES+= surplusbad.0
${PACKAGE}FILES+= surplusbad.0.stdout
${PACKAGE}FILES+= surplusbad.0.pro
${PACKAGE}FILES+= types_from_file.0
${PACKAGE}FILES+= types_from_file.0.stdout
${PACKAGE}FILES+= types_from_file.0.list
${PACKAGE}FILES+= types_from_file.0.pro
${PACKAGE}FILES+= wchar.0
${PACKAGE}FILES+= wchar.0.stdout
ATF_TESTS_SH+= functional_test
BINDIR= ${TESTSDIR}
.include <bsd.test.mk>