aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/call-knr-indirect.c
blob: 2e923b303cd0cc076fee20d728574b65bb2d0448 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
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() {
}