blob: 17be015bffb19c1f96c8cc533570becbc20d8718 [file] [log] [blame]
Chris Lattnerc581e6e2009-06-16 17:39:02 +00001// RUN: clang %s -O0 -emit-llvm -S -o - | grep 'call.*rb_define_global_function'
2// This should call rb_define_global_function, not rb_f_chop.
3
4void rb_define_global_function (const char*,void(*)(),int);
5static void rb_f_chop();
6void Init_String() {
7 rb_define_global_function("chop", rb_f_chop, 0);
8}
9static void rb_f_chop() {
10}
11