summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr90892.c
blob: e4b5310807aa5252d86418650bb5928941badcac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* PR tree-optimization/90892 */
/* { dg-do run } */
/* { dg-options "-O2" } */

const char *a = "A\0b";

int
main()
{
  if (__builtin_strncmp(a, "A\0", 2) != 0)
    __builtin_abort ();

  return 0;
}