blob: 37bc1466a6f3b2c14e84368ab774114b6a03d188 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// { dg-do assemble }
// Origin: Mark Mitchell <mark@codesourcery.com>
struct S
{
S (int);
operator bool () const;
};
template <class T>
void f ()
{
if (const S &s = 3) {
}
}
template void f<int>();
|