Home | History | Annotate | Download | only in tests
      1 // Copyright 2016 The Chromium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 //
      5 // Make sure that the plugin doesn't crash when trying to calculate the weight
      6 // of a class that has fields of incomplete type.
      7 
      8 #ifndef CLASS_WITH_INCOMPLETE_TYPE_H_
      9 #define CLASS_WITH_INCOMPLETE_TYPE_H_
     10 
     11 struct B;
     12 
     13 struct A {
     14   ~A();
     15   B incomplete;
     16 };
     17 
     18 #endif  // CLASS_WITH_INCOMPLETE_TYPE_H_
     19