summaryrefslogtreecommitdiff
path: root/gcc/testsuite/go.test/test/chan/sieve1.go
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/go.test/test/chan/sieve1.go')
-rw-r--r--gcc/testsuite/go.test/test/chan/sieve1.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/testsuite/go.test/test/chan/sieve1.go b/gcc/testsuite/go.test/test/chan/sieve1.go
index 55076c9253..acc310f6c7 100644
--- a/gcc/testsuite/go.test/test/chan/sieve1.go
+++ b/gcc/testsuite/go.test/test/chan/sieve1.go
@@ -1,9 +1,11 @@
-// $G $D/$F.go && $L $F.$A && ./$A.out
+// run
// Copyright 2009 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.
+// Test concurrency primitives: classical inefficient concurrent prime sieve.
+
// Generate primes up to 100 using channels, checking the results.
// This sieve consists of a linear chain of divisibility filters,
// equivalent to trial-dividing each n by all primes p ≤ n.