diff options
-rw-r--r-- | clang/test/CodeGen/PR10204-fun-lvalue.c | 7 | ||||
-rw-r--r-- | clang/test/CodeGen/functions.c | 6 |
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; +} |