blob: 5fd5aee9b4d804b43301be5233540ca852746a7e [file] [log] [blame]
// { dg-do compile }
/* { dg-options "-O1" } */
extern "C" class A
{
};
template <typename T> class B:A
{
public:
B (int *, T);
~B ()
{
}
};
bool a;
inline void
fn1 ()
{
switch (0)
case 0:
{
B <int*> b (0, 0);
if (a)
break;
}
}
void
fn2 ()
{
fn1 ();
}