summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/torture/pr37345.C
blob: 5b49f53069d546513bc0a29994762bdd935323c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile } */
class EbmlElement {                                                                                                                                                    
    virtual EbmlElement * Clone() const;                                                                                                                               
};                                                                                                                                                                     
class KaxTracks : public EbmlElement {                                                                                                                                 
public:                                                                                                                                                                
    EbmlElement * Clone() const {                                                                                                                                      
        return new KaxTracks(*this);                                                                                                                                   
    }                                                                                                                                                                  
};                                                                                                                                                                     
KaxTracks kax_tracks;                                                                                                                                                  
void finish_file(void)                                                                                                                                                 
{                                                                                                                                                                      
  kax_tracks.Clone();                                                                                                                                                  
}