summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr48022-2.c
blob: 41fcb533819c9561b66e9f421fcc340afd5dba8e (plain)
1
2
3
4
5
6
7
8
9
10
11
/* PR tree-optimization/48022 */
/* { dg-do compile } */
/* { dg-options "-O2 -Wstrict-overflow" } */

#include <string.h>

int
foo (const char *x)
{
  return strcmp (x, "/");
}