aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr104381.c
blob: a3aec919beedc5cbb63378f82bcaa9389eb018ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* { dg-do compile } */
/* { dg-options "-O2 -g -gtoggle -fdump-tree-optimized" } */

int foo (int x)
{
  int tem = x + 1;
  int tem2 = tem - 1;
  return tem2;
}

int
__attribute__((optimize("no-tree-pre")))
bar (int x)
{
  int tem = x + 1;
  int tem2 = tem - 1;
  return tem2;
}

// { dg-final { scan-tree-dump-not "DEBUG " "optimized" } }