aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/functions.c
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2011-06-27 22:57:05 +0000
committerJohn McCall <rjmccall@apple.com>2011-06-27 22:57:05 +0000
commita0b7d2ed23c57c6fac4517aca22d2411ead698e4 (patch)
tree6fbf60d3de4731a1b7bc65e1ea66d8f16af36d9b /test/CodeGen/functions.c
parent0c1c98c2375fe68fee0a6075905772e5290d4a28 (diff)
Merge this test into another.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133957 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/functions.c')
-rw-r--r--test/CodeGen/functions.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CodeGen/functions.c b/test/CodeGen/functions.c
index a2c692d0ce..e51f93e574 100644
--- a/test/CodeGen/functions.c
+++ b/test/CodeGen/functions.c
@@ -59,3 +59,9 @@ void f8_test() {
// CHECK: declare void @f8_user({{.*}}*)
// CHECK: declare void @f8_callback()
}
+
+// PR10204: don't crash
+static void test9_helper(void) {}
+void test9() {
+ (void) test9_helper;
+}