aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr86572.c
blob: 6cda55bae2210e2e11419ccabc9f315de9c01281 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-optimized" } */

const char buf[40] = "test";
void test (int x)
{
  if (__builtin_strlen (buf + x) > 4)
    __builtin_abort ();
}

/* { dg-final { scan-tree-dump-not "abort" "optimized" } } */