diff --git a/tests/diagnostics.at b/tests/diagnostics.at index 1955dad5..606b0373 100644 --- a/tests/diagnostics.at +++ b/tests/diagnostics.at @@ -106,5 +106,30 @@ input.y:17.2: warning: empty rule without %empty [-W ]]) +## ------------- ## +## Tabulations. ## +## ------------- ## -m4_popdef([AT_TEST]) \ No newline at end of file +# Make sure we treat tabulations as eight spaces. + +AT_TEST([[Tabulations]], +[[%% +exp: a b c +a: { } +b: { } +c: {------------} +]], +[[input.y:11.4-17: warning: empty rule without %empty [-Wempty-rule] + a: { } + ^~~~~~~~~~~~~~ +input.y:12.4-17: warning: empty rule without %empty [-Wempty-rule] + b: { } + ^~~~~~~~~~~~~~ +input.y:13.4-17: warning: empty rule without %empty [-Wempty-rule] + c: {------------} + ^~~~~~~~~~~~~~ +]]) + + + +m4_popdef([AT_TEST])