aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates/test/core
diff options
context:
space:
mode:
authorGravatar Yash Tibrewal <yashkt@google.com>2017-11-02 16:59:19 -0700
committerGravatar Yash Tibrewal <yashkt@google.com>2017-11-02 16:59:19 -0700
commit2f921a3f9727859d36c77c8af61c84877e73e880 (patch)
tree5f56ad3af46c5c248d0ebb09186780910a8f322b /templates/test/core
parent53417d6e5e62901fd99121ba4f9b8fe76e940e8a (diff)
Remove grpc_slice_buf_cmp and change public_headers_must_be_c89 to print the addresses of public api functions to check if they can be linked to
Diffstat (limited to 'templates/test/core')
-rw-r--r--templates/test/core/surface/public_headers_must_be_c89.c.template16
1 files changed, 15 insertions, 1 deletions
diff --git a/templates/test/core/surface/public_headers_must_be_c89.c.template b/templates/test/core/surface/public_headers_must_be_c89.c.template
index dcaa59bb30..d6a1a8ceff 100644
--- a/templates/test/core/surface/public_headers_must_be_c89.c.template
+++ b/templates/test/core/surface/public_headers_must_be_c89.c.template
@@ -35,9 +35,23 @@
assert(hdr[0:len(pfx)] == pfx)
hdrs.add(hdr[len(pfx):])
hdrs = sorted(list(hdrs))
+ fns = list()
+ for api in c_apis:
+ if is_platform_header(api.header):
+ continue
+ fns.append(api.name)
%>\
% for hdr in hdrs:
#include <${hdr}>
% endfor
- int main(int argc, char **argv) { return 0; }
+ #include <stdio.h>
+
+ int main(int argc, char **argv) {
+ if(argc == 12345678) {
+ % for fn in fns:
+ printf("%lx", (unsigned long) ${fn});;
+ % endfor
+ }
+ return 0;
+ }