Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
372776de
Commit
372776de
authored
Mar 30, 2011
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Copy env.go from master Go testsuite.
From-SVN: r171752
parent
786a183b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
gcc/testsuite/go.test/test/env.go
+6
-3
No files found.
gcc/testsuite/go.test/test/env.go
View file @
372776de
...
...
@@ -6,7 +6,10 @@
package
main
import
os
"os"
import
(
"os"
"runtime"
)
func
main
()
{
ga
,
e0
:=
os
.
Getenverror
(
"GOARCH"
)
...
...
@@ -14,8 +17,8 @@ func main() {
print
(
"$GOARCH: "
,
e0
.
String
(),
"
\n
"
)
os
.
Exit
(
1
)
}
if
ga
!=
"amd64"
&&
ga
!=
"386"
&&
ga
!=
"arm"
{
print
(
"$GOARCH="
,
ga
,
"
\n
"
)
if
ga
!=
runtime
.
GOARCH
{
print
(
"$GOARCH="
,
ga
,
"
!= runtime.GOARCH="
,
runtime
.
GOARCH
,
"
\n
"
)
os
.
Exit
(
1
)
}
xxx
,
e1
:=
os
.
Getenverror
(
"DOES_NOT_EXIST"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment