Home | History | Annotate | Download | only in CodeGen
      1 // RUN: %clang_cc1 -Wno-error=return-type %s -emit-llvm-only
      2 // REQUIRES: LP64
      3 
      4 // Mismatched type between return and function result.
      5 int test2() { return; }
      6 void test3() { return 4; }
      7 
      8 
      9 void 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
     28 int test5(long long b) {
     29   static void *lbls[] = { &&lbl };
     30   goto *b;
     31  lbl:
     32   return 0;
     33 }
     34 
     35