aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/builtin-snprintf-10.c
blob: 07ee4e587a25dd7bd38b98f5bae461f9496c0f80 (plain)
1
2
3
4
5
6
7
8
9
10
/* PR tree-optimization/92691 */
/* { dg-do compile } */
/* { dg-options "-O2" } */

void
foo (int x, char *y)
{
  if (x != 0)
    __builtin_snprintf (y, 0, "foo");
}