diff options
author | Chris Lattner <sabre@nondot.org> | 2011-07-12 04:51:05 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2011-07-12 04:51:05 +0000 |
commit | 48c86b27e3bec52e16b6b4a1c9735ee4e9f56bb7 (patch) | |
tree | f27a3c26bd2158415852f60b591335e9ed8141f8 /test/CodeGen/call.c | |
parent | edee94b615059ad178b06a489312eca6e049609a (diff) |
make test name less specific
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134964 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/call.c')
-rw-r--r-- | test/CodeGen/call.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/call.c b/test/CodeGen/call.c new file mode 100644 index 0000000000..2e923b303c --- /dev/null +++ b/test/CodeGen/call.c @@ -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() { +} + |