summaryrefslogtreecommitdiff
path: root/libmudflap/testsuite/libmudflap.c++/pass66-frag.cxx
blob: 989c7ca6f1c0c316f0f5691a27b9ba1bad0417e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// PR c++/37568
// { dg-do compile }
// { dg-options "-fmudflap -O" }

struct A
{
  int i;
};

A
foo ()
{
  A a = { 1 };
  return a;
}

A a = foo ();