[cfe-commits] r73514 - /cfe/trunk/test/CodeGen/call-knr-indirect.c

Chris Lattner sabre at nondot.org
Tue Jun 16 10:39:03 PDT 2009


Author: lattner
Date: Tue Jun 16 12:39:02 2009
New Revision: 73514

URL: http://llvm.org/viewvc/llvm-project?rev=73514&view=rev
Log:
testcase for r72869, it turns out that it happens in Ruby.

Added:
    cfe/trunk/test/CodeGen/call-knr-indirect.c

Added: cfe/trunk/test/CodeGen/call-knr-indirect.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/call-knr-indirect.c?rev=73514&view=auto

==============================================================================
--- cfe/trunk/test/CodeGen/call-knr-indirect.c (added)
+++ cfe/trunk/test/CodeGen/call-knr-indirect.c Tue Jun 16 12:39:02 2009
@@ -0,0 +1,11 @@
+// RUN: clang %s -O0 -emit-llvm -S -o - | grep 'call.*rb_define_global_function'
+// This should call rb_define_global_function, not rb_f_chop.
+
+void rb_define_global_function (const char*,void(*)(),int);
+static void rb_f_chop();
+void Init_String() {
+  rb_define_global_function("chop", rb_f_chop, 0);
+}
+static void rb_f_chop() {
+}
+





More information about the cfe-commits mailing list