summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr37156.c
blob: e86f5950f734e644e36560da33a6adcfe0ec32dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* PR debug/37156 */
/* { dg-do compile } */
/* { dg-options "-O2 -g" } */

__attribute__ ((warning ("is experimental"))) int bar (int, int *, int *, int);

long long foo (void)
{
  int n, m;
  long long r;
  bar (0, &n, &m, 0);	/* { dg-warning "is experimental" } */
  r = (long long) n;
  return r;
}

void
baz (int n)
{
  int o;
  o = foo () - n;
}