aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/analyzer/pr93669.c
blob: 01e266dd3f238f442890eb73ac7f251e45bc1578 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* { dg-additional-options "--param analyzer-max-enodes-per-program-point=2 -Wno-analyzer-too-complex" }  */

#include "analyzer-decls.h"

int test (int a)
{
  if (a != 42 && a != 113) {
    return (-2);
  }

  __analyzer_dump_exploded_nodes (0); /* { dg-warning "1 processed enode" } */

  return 0;
}

int test_2 (int a)
{
  if (a != 42 && a != 113 && a != 666) {
    return (-2);
  }

  __analyzer_dump_exploded_nodes (0); /* { dg-warning "1 processed enode" } */

  return 0;
}