summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/guality/guality.c
blob: d5d950fcdac29ea57ff5667332a59941affec53e (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
26
27
28
/* { dg-do run { xfail *-*-* } } */
/* { dg-options "-g" } */

#include "guality.h"

/* Some silly sanity checking.  */

int
main (int argc, char *argv[])
{
  int i = argc+1;
  int j = argc-2;
  int k = 5;

  GUALCHKXPR (argc);
  GUALCHKXPR (i);
  GUALCHKXPR (j);
  GUALCHKXPR (k);
  GUALCHKXPR (&i);
  GUALCHKFLA (argc);
  GUALCHKFLA (i);
  GUALCHKFLA (j);
  GUALCHKXPR (i);
  GUALCHKXPR (j);
  GUALCHKXPRVAL ("k", 5, 1);
  GUALCHKXPRVAL ("0x40", 64, 0);
  /* GUALCHKXPRVAL ("0", 0, 0); *//* XFAIL */
}