[Heikki Kultala] This patch contains the ABI changes for the TCE target.
[clang.git] / test / CodeGen / statements.c
blob1d4f633f6172693ca806f807ce8b2d70dbaa91ca
1 // RUN: %clang_cc1 -Wreturn-type %s -emit-llvm-only
3 void test1(int x) {
4 switch (x) {
5 case 111111111111111111111111111111111111111:
6 bar();
10 // Mismatched type between return and function result.
11 int test2() { return; }
12 void test3() { return 4; }
15 void test4() {
16 bar:
17 baz:
18 blong:
19 bing:
22 // PR5131
23 static long x = &&bar - &&baz;
24 static long y = &&baz;
25 &&bing;
26 &&blong;
27 if (y)
28 goto *y;
30 goto *x;
33 // PR3869
34 int test5(long long b) {
35 static void *lbls[] = { &&lbl };
36 goto *b;
37 lbl:
38 return 0;