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

Unified Diff: crosstest/test_global_main.cpp

Issue 651673003: Fix cross test test_global. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crosstest/test_global_main.cpp
diff --git a/crosstest/test_global_main.cpp b/crosstest/test_global_main.cpp
index bcaaa7d0d14e36db2323049cf0717c86fe64dad1..d39fbe38add32d92a416caa30103039948d86848 100644
--- a/crosstest/test_global_main.cpp
+++ b/crosstest/test_global_main.cpp
@@ -26,11 +26,16 @@ namespace Subzero_ {
int ExternName1 = 36363;
float ExternName2 = 357.05e-10;
char ExternName3[] = {'a', 'b', 'c'};
-struct {
+struct data {
Jim Stichnoth 2014/10/20 21:23:25 struct Data
Karl 2014/10/20 21:27:03 Done.
int a;
float b;
double d;
-} ExternName4 = {-111, 2.69, 55.19};
+};
+
+struct data SimpleData = {-111, 2.69, 55.19};
+
+struct data *ExternName4 = &SimpleData;
+
double ExternName5 = 3.44e26;
int main(int argc, char **argv) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698