brintos

brintos / llvm-project-archived public Read only

0
0
Text · 401 B · 4a2c858 Raw
12 lines · c
1// RUN: %clang_cc1 -fsyntax-only -verify %s2 3// This invalid code was causing a stack overflow, check that we issue4// reasonable diagnostics and not crash.5struct 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 9void gh140887() {10  struct GH140887 s;11}12