| // Copyright 2015 The Go Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style |
| // license that can be found in the LICENSE file. |
| // Tests libgo.so to export the following functions. |
| int8_t ran_init = DidInitRun(); |
| fprintf(stderr, "ERROR: DidInitRun returned unexpected results: %d\n", |
| int8_t ran_main = DidMainRun(); |
| fprintf(stderr, "ERROR: DidMainRun returned unexpected results: %d\n", |
| int32_t from_pkg = FromPkg(); |
| fprintf(stderr, "ERROR: FromPkg=%d, want %d\n", from_pkg, 1024); |
| // test.bash looks for "PASS" to ensure this program has reached the end. |