summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/tree-ssa/empty-1.C
blob: 6a6e452be24c2979fdc013fbdd2444fcfcc2315e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-optimized" } */

struct S {};
S bar (const S &a)
{
  S s;
  s = a;
  return s;
}

/* Test whether memcpy call has been optimized out.  */
/* { dg-final { scan-tree-dump-times "memcpy" 0 "optimized"} } */
/* { dg-final { cleanup-tree-dump "optimized" } } */