| Daniel Dunbar | 80737ad | 2009-12-15 22:01:24 +0000 | [diff] [blame] | 1 | // RUN: %clang %s -O0 -emit-llvm -S -o - | grep 'call.*rb_define_global_function' |
| Chris Lattner | c581e6e | 2009-06-16 17:39:02 +0000 | [diff] [blame] | 2 | // This should call rb_define_global_function, not rb_f_chop. |
| 3 | |||||
| 4 | void rb_define_global_function (const char*,void(*)(),int); | ||||
| 5 | static void rb_f_chop(); | ||||
| 6 | void Init_String() { | ||||
| 7 | rb_define_global_function("chop", rb_f_chop, 0); | ||||
| 8 | } | ||||
| 9 | static void rb_f_chop() { | ||||
| 10 | } | ||||
| 11 | |||||