aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/pr54655.C
blob: 5fd5aee9b4d804b43301be5233540ca852746a7e (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
// { 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 ();
}