Skip analyzer strndup test on hppa*-*-hpux*
[official-gcc.git] / gcc / testsuite / gcc.dg / strcmpopt_9.c
blob15f6b63d1911e6e69772d0b119c013b86031ce41
1 /* PR tree-optimization/92683 - strncmp incorrect result with equal substrings
2 and nonconst bound
3 { dg-do run }
4 { dg-options "-O2 -Wall" } */
6 #include "strlenopt.h"
8 #define ident(n) ident (n)
10 __attribute__ ((noclone, noinline, noipa)) size_t
11 ident (size_t x)
13 return x;
16 int nfails;
18 __attribute__ ((noclone, noinline, noipa)) void
19 failure_on_line (int line)
21 __builtin_printf ("failure on line %i\n", line);
22 ++nfails;
25 #include "strcmpopt_8.c"
27 int main (void)
29 test_literal ();
30 test_cst_array ();
32 if (nfails)
33 __builtin_abort ();