diff --git a/compiler-rt/test/asan/TestCases/strncasecmp_strict.c b/compiler-rt/test/asan/TestCases/strncasecmp_strict.c index bd937214092d..8a99783ecba9 100644 --- a/compiler-rt/test/asan/TestCases/strncasecmp_strict.c +++ b/compiler-rt/test/asan/TestCases/strncasecmp_strict.c @@ -24,7 +24,7 @@ int main(int argc, char **argv) { assert(argc >= 2); - const size_t size = 100; + enum { size = 100 }; char fill = 'o'; char s1[size]; char s2[size]; diff --git a/compiler-rt/test/asan/TestCases/strncmp_strict.c b/compiler-rt/test/asan/TestCases/strncmp_strict.c index 5b5429064ced..e06d1475b96f 100644 --- a/compiler-rt/test/asan/TestCases/strncmp_strict.c +++ b/compiler-rt/test/asan/TestCases/strncmp_strict.c @@ -22,7 +22,7 @@ int main(int argc, char **argv) { assert(argc >= 2); - const size_t size = 100; + enum { size = 100 }; char fill = 'o'; char s1[size]; char s2[size];