summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/expr/crash-1.C
blob: d8d689fd67b0638bd6ab4e8d2e4fbf8181960db5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// C++ PR/10476
// Origin: larsbj@gullik.net and bangerth@dealii.org


struct X {
  X();
  X(const X& __str);
};
X const bar();
void foo()
{
  X y;
  (true ? y : bar());
}