view gcc/testsuite/gcc.dg/analyzer/pr94639.c @ 19:2b5abeee2509 default tip

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents
children
line wrap: on
line source

#include <string.h>

void validatedatetime(const char *str)
{
  const char *templates[] = {"dddd-dd-dd dd:dd", "dddd-dd-dd"};

  size_t len = strlen(str);

  for (unsigned t = 0; t < 2; t++) {
    if (len != strlen(templates[t])) {
      continue;
    }
  }
}