summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/analyzer/paths-2.c
blob: 3efc053ade1b21a6954ca555db7d0c16a89d1980 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#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;
}