gcc/testsuite/g++.dg/opt/interface2.C
raw| 1 | // Copyright (C) 2005 Free Software Foundation, Inc. |
| 2 | // Contributed by Nathan Sidwell 2 Jun 2005 <[email protected]> |
| 3 | |
| 4 | // PR 21280 |
| 5 | // Origin: Jens Maurer <[email protected]> |
| 6 | |
| 7 | #include "interface2.h" |
| 8 | |
| 9 | struct A |
| 10 | { |
| 11 | A() { } |
| 12 | virtual ~A() { } |
| 13 | }; |
| 14 | |
| 15 | int main() |
| 16 | { |
| 17 | A a; |
| 18 | C<A> c(a); |
| 19 | } |