summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/guality/pr42782.c
blob: 6a880814aaf3af79e45ba3580ec366ec5523aac8 (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
/* { dg-options "-g" } */

#include "guality.h"

void __attribute__ ((__noinline__))
g (void)
{
  asm volatile ("");
}

int
f (int a)
{
  g ();
  GUALCHKVAL (a);
  return a;
}

int
main (int argc, char *argv[])
{
  f (argc + 2);
  f (argc + 5);
}