blob: 1f05c602c609deb6df2023ffb326e265c56189d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
// { dg-do assemble }
class x
{
public:
x (int init_buffer_size=0);
~x ();
};
class xSequence
{
public:
xSequence ();
~xSequence ();
x Get(int index)const;
};
class foo
{
public:
bool bar(const x & name, x & value);
};
bool foo::bar(const x & name, x & value)
{
bool result = false;
xSequence seq;
x v1, v2;
if(result ? bar(seq.Get(1),v2) : bar(seq.Get(2),v2))
;
return result;
}
|