summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/condexpr1.C
blob: 1ca7dbfa64600458c13f5ec5be5f928a0b2662b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// PR c++/10247
// Origin: Lars Gullik Bj�nes <larsbj@lyx.org>
// { dg-do compile }

struct A {};

A const foo();

void bar()
{
    A a = foo();
    A b = true ? a : foo();
}