Verify Brainfuck program
Brainfuck 76 bytes
&gt;&gt;+[&lt;+++++++++[-&gt;---------&lt;]+&gt;-[--[[-]&lt;-&gt;]&lt;[&lt;[-&gt;-]&gt;[&lt;+]&lt;]&gt;]&lt;[-&lt;+&gt;]+&gt;,]&lt;&lt;[&lt;+]

This goes out of it's bonds if square brackets are unbalanced turning the bf interpreter/compiler to fail runtime and some of them have exit codes to reflect that.
requires eof=0, wrapping values and finit number of cells
In Ubuntu you can use the interpreter bf (sudo apt-get install bf)
% echo '[[[]' | bf -n bf_matching.bf
Error: Out of range! Youwanted to '&lt;' below the first cell.
To solve, add some '&gt;'s at the beginning, for example.
an error occured
% echo $? 
5
% bf -n bf_matching.bf &lt; bf_matching.bf
% echo $?
0