Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: wasm-tests/indirect.c

Issue 1876413002: Subzero. WASM. Additional progress. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Code review feedback and merging with master Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « wasm-tests/hello-write.c ('k') | wasm-tests/write_loop.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 int foo() { return 5; }
2
3 int bar() { return 6; }
4
5 int baz() { return 7; }
6
7 int (*TABLE[])() = {foo, baz, bar, baz};
8
9 int main(int argc, const char **argv) {
10 int (*f)() = TABLE[argc - 1];
11
12 return f();
13 }
OLDNEW
« no previous file with comments | « wasm-tests/hello-write.c ('k') | wasm-tests/write_loop.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698