aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2017-11-03 15:23:13 -0700
committerGravatar Craig Tiller <ctiller@google.com>2017-11-03 15:23:13 -0700
commita64b2b13c1e811e4896e5e0eb116c9d7afd11abb (patch)
tree979fa8f9f86a169a37d963e6186009bd4605f566 /templates
parent0c6a3e3e67569466609d349a298c3e4774988eda (diff)
parent8cbb89a722ac87824a56ad77e3e05f72891d257c (diff)
Merge github.com:grpc/grpc into 50
Diffstat (limited to 'templates')
-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 f96caac218..e2d3b1810a 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;
+ }