xref: /llvm-project/clang/test/Layout/dump-complete-invalid.cpp (revision e4882d83d77f9d6a5198ecb7faabd5bf2ce4b730)
1 // RUN: %clang_cc1 -verify -fsyntax-only -fdump-record-layouts-complete %s
2 
3 struct Incomplete; // expected-note {{forward declaration}}
4 
5 // Check we don't crash on trying to print out an invalid declaration.
6 struct Invalid : Incomplete {}; // expected-error {{base class has incomplete type}}
7