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