From 13a574d8bb2523181f8150de49bc041c9841f59d Mon Sep 17 00:00:00 2001 From: "Dr. David von Oheimb" Date: Mon, 28 Sep 2020 09:18:01 +0200 Subject: check-format.pl: Allow nested indentation of labels (not only at line pos 1) Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/13019) --- util/check-format-test-negatives.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'util/check-format-test-negatives.c') diff --git a/util/check-format-test-negatives.c b/util/check-format-test-negatives.c index d1de4104bc..3ce0740bc1 100644 --- a/util/check-format-test-negatives.c +++ b/util/check-format-test-negatives.c @@ -282,10 +282,17 @@ static void *fun(void) /* comment */ return NULL; +label0: + label1: /* allow special indent 1 for label at outermost level in body */ do { + label2: size_t available_len, data_len; const char *curr = txt, *next = txt; char *tmp; + + { + label3: + } } while (1); char *intraline_string_with_comment_delimiters_and_dbl_space = "1 /*1"; -- cgit v1.2.3