summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/opt/pr17411-1.C
blob: 62b57a5a7f51fac167aae00c1ffcd81dd9738879 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// PR middle-end/17411
// { dg-do compile }
// { dg-options "-O2" }

struct CalibData {
  float mean_pedestal;
};

struct pair
{
  CalibData second;
  pair(const CalibData& __b) : second(__b) { }
};

void insert(const pair& __x);

void foo()
{
  insert(pair(CalibData()));
}