Add small example

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2013-08-01 22:07:28 -07:00
parent 3ef9d21875
commit c13b9a792a

View file

@ -96,8 +96,15 @@ static void tst1() {
return;
}
static void tst2() {
format f4 = nest(3, compose(format("foo"), compose(line(), format("bla"))));
cout << f4 << "\n";
cout << paren(f4) << "\n";
}
int main() {
continue_on_violation(true);
tst1();
tst2();
return has_violations() ? 1 : 0;
}