aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/statements.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/statements.c')
-rw-r--r--test/CodeGen/statements.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/CodeGen/statements.c b/test/CodeGen/statements.c
index 46d19dbc52..4092121393 100644
--- a/test/CodeGen/statements.c
+++ b/test/CodeGen/statements.c
@@ -1,9 +1,13 @@
-// RUN: clang %s -emit-llvm
+// RUN: clang < %s -emit-llvm
-void foo(int x) {
+void test1(int x) {
switch (x) {
case 111111111111111111111111111111111111111:
bar();
}
}
+// Mismatched type between return and function result.
+int test2() { return; }
+void test3() { return 4; }
+