summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/pr27810.c
blob: c7da3bd5d06b7669ec0aa141f1977ad6e2f1cbe8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* { dg-do compile } */
/* { dg-options "-fdump-tree-gimple" } */

int bar (int);

int qqq (int a)
{
    int result;
    result = bar (a);
    return result;
}

/* We should not use an extra temporary for the result of the
   function call.  */

/* { dg-final { scan-tree-dump-times "int" 3 "gimple" } } */
/* { dg-final { scan-tree-dump-times "int D\\\." 1 "gimple" } } */
/* { dg-final { cleanup-tree-dump "gimple" } } */