summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/torture/pr49309.C
blob: a34537792505b03eed2ffa4a08978b1b6280d1b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// PR tree-optimization/49309
// { dg-do compile }
// { dg-options "-fpreprocessed -fmudflap" }

struct A
{
  int i;

  A();
  A(const A&);
};

inline void foo(A a) { a = A(); }

void bar() { foo(A()); }