summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/unreachable.c
blob: 279a27770309aed600cefa459a1c1bcb10aeb9a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile } */
/* { dg-options "-O1 -fdump-tree-optimized" } */
static void bad_boy()
{
}
int
main()
{
  void *t=(void *)bad_boy;
  if (!t)
    return 1;
  return 0;
}
/* { dg-final { scan-tree-dump-not "bad_boy" "optimized"} } */
/* { dg-final { cleanup-tree-dump "optimized" } } */