summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/opt/interface2.C
blob: e75e425893d9a066536fb49eb815922eee41b261 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright (C) 2005 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 2 Jun 2005 <nathan@codesourcery.com>

// PR 21280
// Origin: Jens Maurer <jens.maurer@gmx.net>

#include "interface2.h"

struct A
{
  A() { }
  virtual ~A() { }
};

int main()
{
  A a;
  C<A> c(a);
}