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

Unified Diff: tests/callingconv/callingconv.c

Issue 8366024: Add pnacl-gcc generated code back into the callingconv test mix (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: '' Created 9 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « site_scons/site_tools/naclsdk.py ('k') | tests/callingconv/generate.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/callingconv/callingconv.c
===================================================================
--- tests/callingconv/callingconv.c (revision 6994)
+++ tests/callingconv/callingconv.c (working copy)
@@ -21,16 +21,20 @@
int assert_count = 0;
const char *script_argv;
-void module0(void);
-void module1(void);
-void module2(void);
-void module3(void);
+void module0(void) __attribute__((weak));
+void module1(void) __attribute__((weak));
+void module2(void) __attribute__((weak));
+void module3(void) __attribute__((weak));
+void module4(void) __attribute__((weak));
+void module5(void) __attribute__((weak));
int main(int argc, const char *argv[]) {
- module0();
- module1();
- module2();
- module3();
+ if (module0) module0();
+ if (module1) module1();
+ if (module2) module2();
+ if (module3) module3();
+ if (module4) module4();
+ if (module5) module5();
printf("generate.py arguments: %s\n", script_argv);
printf("SUCCESS: %d calls OK.\n", assert_count);
« no previous file with comments | « site_scons/site_tools/naclsdk.py ('k') | tests/callingconv/generate.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698