1 // RUN: %clang_cc1 -Wno-error=return-type %s -emit-llvm-only
2 // REQUIRES: LP64
3 
4 void test1(int x) {
5 switch (x) {
6 case 111111111111111111111111111111111111111:
7 bar();
8 }
9 }
10 
11 // Mismatched type between return and function result.
12 int test2() { return; }
13 void test3() { return 4; }
14 
15 
16 void test4() {
17 bar:
18 baz:
19 blong:
20 bing:
21  ;
22 
23 // PR5131
24 static long x = &&bar - &&baz;
25 static long y = &&baz;
26   &&bing;
27   &&blong;
28   if (y)
29     goto *y;
30 
31   goto *x;
32 }
33 
34 // PR3869
35 int test5(long long b) {
36   static void *lbls[] = { &&lbl };
37   goto *b;
38  lbl:
39   return 0;
40 }
41 
42