| 1 |
// { dg-do compile { target c++11 } } |
| 2 |
// { dg-final { scan-assembler-not "_ZN3OneD0Ev" } } |
| 3 |
|
| 4 |
// PR C++/88114 |
| 5 |
// Destructor of an abstract class was never generated |
| 6 |
// when compiling the class - nor later due to the |
| 7 |
// '#pragma interface' |
| 8 |
// -> g++.dg/cpp0x/defaulted61.C |
| 9 |
|
| 10 |
// HERE, in g++.dg/cpp0x/defaulted62.C: |
| 11 |
// As we have commented the pragmas, it should NOT be created |
| 12 |
// #pragma implementation |
| 13 |
// #pragma interface |
| 14 |
|
| 15 |
class One |
| 16 |
{ |
| 17 |
public: |
| 18 |
virtual ~One() = default; |
| 19 |
void some_fn(); |
| 20 |
virtual void later() = 0; |
| 21 |
private: |
| 22 |
int m_int; |
| 23 |
}; |
| 24 |
|
| 25 |
void One::some_fn() { } |