Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / CodeGen / statements.c
blob07ae075d6d807e0948349d23436167ff6942d935
1 // RUN: %clang_cc1 -Wno-error=return-type -Wno-error=int-conversion %s -emit-llvm-only
2 // REQUIRES: LP64
4 // Mismatched type between return and function result.
5 int test2() { return; }
6 void test3() { return 4; }
9 void test4() {
10 bar:
11 baz:
12 blong:
13 bing:
16 // PR5131
17 static long x = &&bar - &&baz;
18 static long y = &&baz;
19 &&bing;
20 &&blong;
21 if (y)
22 goto *y;
24 goto *x;
27 // PR3869
28 int test5(long long b) {
29 static void *lbls[] = { &&lbl };
30 goto *b;
31 lbl:
32 return 0;