summaryrefslogtreecommitdiffstats
path: root/clang
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
commite25bf38d946882abf4555c5a62b83c99b75414e4 (patch)
treeb61579cb3f9a6bab0b29e90002f2c14e102ab5ec /clang
parentd982f039a1a1beb2592281466216cd201a7783e8 (diff)
downloadbcm5719-llvm-e25bf38d946882abf4555c5a62b83c99b75414e4.tar.gz
bcm5719-llvm-e25bf38d946882abf4555c5a62b83c99b75414e4.zip
Merge this test into another.
llvm-svn: 133957
Diffstat (limited to 'clang')
-rw-r--r--clang/test/CodeGen/PR10204-fun-lvalue.c7
-rw-r--r--clang/test/CodeGen/functions.c6
2 files changed, 6 insertions, 7 deletions
diff --git a/clang/test/CodeGen/PR10204-fun-lvalue.c b/clang/test/CodeGen/PR10204-fun-lvalue.c
deleted file mode 100644
index ff558f18c53..00000000000
--- a/clang/test/CodeGen/PR10204-fun-lvalue.c
+++ /dev/null
@@ -1,7 +0,0 @@
-// RUN: %clang_cc1 -triple i386-unknown-unknown -emit-llvm %s
-// PR10204
-static void loopback_VertexAttribI4ubv() {}
-
-void _mesa_loopback_init_api_table() {
- (void) loopback_VertexAttribI4ubv;
-}
diff --git a/clang/test/CodeGen/functions.c b/clang/test/CodeGen/functions.c
index a2c692d0ce3..e51f93e5741 100644
--- a/clang/test/CodeGen/functions.c
+++ b/clang/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;
+}
OpenPOWER on IntegriCloud