diff options
author | Muxi Yan <mxyan@google.com> | 2017-12-06 18:47:16 -0800 |
---|---|---|
committer | Muxi Yan <mxyan@google.com> | 2017-12-06 18:47:16 -0800 |
commit | 4a117f0be7feb1779bd0bb0b65c6e2d930f07e80 (patch) | |
tree | 30ca52f7141db8fc8543a5a0bc7842766fab5c12 /templates/test | |
parent | 1b1c9b387bcd98f08b8c17f6ee15095c099dd665 (diff) | |
parent | 4f22c919e1207af206fc83e7378f04e047f7c78d (diff) |
Merge e759d2a^
Diffstat (limited to 'templates/test')
-rw-r--r-- | templates/test/core/surface/public_headers_must_be_c89.c.template | 16 |
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..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; + } |