summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/statements.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/statements.c')
-rw-r--r--test/CodeGen/statements.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGen/statements.c b/test/CodeGen/statements.c
new file mode 100644
index 0000000..1ff7601
--- /dev/null
+++ b/test/CodeGen/statements.c
@@ -0,0 +1,13 @@
+// RUN: clang-cc < %s -emit-llvm
+
+void test1(int x) {
+switch (x) {
+case 111111111111111111111111111111111111111:
+bar();
+}
+}
+
+// Mismatched type between return and function result.
+int test2() { return; }
+void test3() { return 4; }
+
OpenPOWER on IntegriCloud