libstdc++: [_Hashtable] Fix some implementation inconsistencies
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / defaulted62.C
blobd8dab60881697fe03157d975ce5c7e94f3d3b844
1 // { dg-do compile { target c++11 } }
2 // { dg-final { scan-assembler-not "_ZN3OneD0Ev" } }
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
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
15 class One
17  public:
18   virtual ~One() = default;
19   void some_fn();
20   virtual void later() = 0;
21  private:
22   int m_int;
25 void One::some_fn() { }