aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/analyzer/params-2.c
blob: 433c658720f232e85aca34e982b074fafc995838 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <stdlib.h>
#include "analyzer-decls.h"

static void ensure_equal (int a, int b)
{
  if (a != b)
    abort ();
}

void test(int i, int j)
{
  __analyzer_eval (i == j); /* { dg-warning "UNKNOWN" } */

  ensure_equal (i, j);

  __analyzer_eval (i == j); /* { dg-warning "TRUE" } */
}