Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.pt/cond2.C

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