Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / Parser / while-loop-outside-function.c
blob2e747dd3f8b153d01c0a219e256eb2141aabc378
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
3 while // expected-error {{while loop outside of a function}}
4 (1) {};
6 // without semicolon
7 while // expected-error {{while loop outside of a function}}
8 (1) {}
10 int overload_return(); // expected-note {{previous declaration is here}}
12 void overload_return() // expected-error {{conflicting types for 'overload_return'}}
14 while(1) {};
15 while(1);
18 while // expected-error {{while loop outside of a function}}
19 (1);
21 void correct();
23 void correct() {
24 while(1) {};
25 while(1);