Debian Codegraph @

clang/test/Sema/warn-default-const-init-crash.c

raw
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2
3 // This invalid code was causing a stack overflow, check that we issue
4 // reasonable diagnostics and not crash.
5 struct GH140887 { // expected-note {{definition of 'struct GH140887' is not complete until the closing '}'}}
6 struct GH140887 s; // expected-error {{field has incomplete type 'struct GH140887'}}
7 };
8
9 void gh140887() {
10 struct GH140887 s;
11 }