summaryrefslogtreecommitdiffstats
path: root/util/check-format-test-negatives.c
diff options
context:
space:
mode:
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>2020-09-28 09:18:01 +0200
committerDr. David von Oheimb <David.von.Oheimb@siemens.com>2020-09-30 20:51:23 +0200
commit13a574d8bb2523181f8150de49bc041c9841f59d (patch)
treed901940756cad14da1653880508e96e20ed14431 /util/check-format-test-negatives.c
parent8e655da0225eb399675aaa05f4ba36e9347043ca (diff)
check-format.pl: Allow nested indentation of labels (not only at line pos 1)
Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/13019)
Diffstat (limited to 'util/check-format-test-negatives.c')
-rw-r--r--util/check-format-test-negatives.c7
1 files changed, 7 insertions, 0 deletions
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";