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