freebsd-dev/test/CodeGen/call-knr-indirect.c

12 lines
333 B
C
Raw Normal View History

2010-01-01 10:34:51 +00:00
// RUN: %clang %s -O0 -emit-llvm -S -o - | grep 'call.*rb_define_global_function'
2009-06-22 08:08:35 +00:00
// 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() {
}