if(exportname(name))
n = newname(lookup(name));
+ else if(s->pkg == builtinpkg && importpkg != nil)
+ // The name of embedded builtins during imports belongs to importpkg.
+ n = newname(pkglookup(name, importpkg));
else
n = newname(pkglookup(name, s->pkg));
n = nod(ODCLFIELD, n, oldname(s));
{
int nprec;
NodeList *l;
- Type *t;
while(n && n->implicit && (n->op == OIND || n->op == OADDR))
n = n->left;
else
fmtprint(f, "(%T{", n->type);
for(l=n->list; l; l=l->next) {
- // another special case: if n->left is an embedded field of builtin type,
- // it needs to be non-qualified. Can't figure that out in %S, so do it here
- if(l->n->left->type->embedded) {
- t = l->n->left->type->type;
- if(t->sym == S)
- t = t->type;
- fmtprint(f, " %hhS:%N", t->sym, l->n->right);
- } else
- fmtprint(f, " %hhS:%N", l->n->left->sym, l->n->right);
+ fmtprint(f, " %hhS:%N", l->n->left->sym, l->n->right);
if(l->next)
fmtstrcpy(f, ",");
+++ /dev/null
-// $G $D/$F.dir/one.go && $G $D/$F.dir/two.go || echo BUG:bug434
-
-// NOTE: This test is not run by 'run.go' and so not run by all.bash.
-// To run this test you must use the ./run shell script.
-
-// Copyright 2011 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.
-
-package ignored
// license that can be found in the LICENSE file.
// Run runs tests in the test directory.
-//
+//
// TODO(bradfitz): docs of some sort, once we figure out how we're changing
// headers of files
package main
err error
}
-// startTest
+// startTest
func startTest(dir, gofile string) *test {
t := &test{
dir: dir,
}
var skipOkay = map[string]bool{
- "linkx.go": true,
- "rotate.go": true,
- "sigchld.go": true,
- "sinit.go": true,
- "dwarf/main.go": true,
- "dwarf/z1.go": true,
- "dwarf/z10.go": true,
- "dwarf/z11.go": true,
- "dwarf/z12.go": true,
- "dwarf/z13.go": true,
- "dwarf/z14.go": true,
- "dwarf/z15.go": true,
- "dwarf/z16.go": true,
- "dwarf/z17.go": true,
- "dwarf/z18.go": true,
- "dwarf/z19.go": true,
- "dwarf/z2.go": true,
- "dwarf/z20.go": true,
- "dwarf/z3.go": true,
- "dwarf/z4.go": true,
- "dwarf/z5.go": true,
- "dwarf/z6.go": true,
- "dwarf/z7.go": true,
- "dwarf/z8.go": true,
- "dwarf/z9.go": true,
- "fixedbugs/bug248.go": true, // combines errorcheckdir and rundir in the same dir.
- "fixedbugs/bug302.go": true, // tests both .$O and .a imports.
- "fixedbugs/bug313.go": true, // errorcheckdir with failures in the middle.
- "fixedbugs/bug345.go": true, // needs the appropriate flags in gc invocation.
- "fixedbugs/bug369.go": true, // needs compiler flags.
- "fixedbugs/bug385_32.go": true, // arch-specific errors.
- "fixedbugs/bug385_64.go": true, // arch-specific errors.
- "fixedbugs/bug429.go": true,
- "bugs/bug395.go": true,
- "bugs/bug434.go": true,
+ "linkx.go": true,
+ "rotate.go": true,
+ "sigchld.go": true,
+ "sinit.go": true,
+ "dwarf/main.go": true,
+ "dwarf/z1.go": true,
+ "dwarf/z10.go": true,
+ "dwarf/z11.go": true,
+ "dwarf/z12.go": true,
+ "dwarf/z13.go": true,
+ "dwarf/z14.go": true,
+ "dwarf/z15.go": true,
+ "dwarf/z16.go": true,
+ "dwarf/z17.go": true,
+ "dwarf/z18.go": true,
+ "dwarf/z19.go": true,
+ "dwarf/z2.go": true,
+ "dwarf/z20.go": true,
+ "dwarf/z3.go": true,
+ "dwarf/z4.go": true,
+ "dwarf/z5.go": true,
+ "dwarf/z6.go": true,
+ "dwarf/z7.go": true,
+ "dwarf/z8.go": true,
+ "dwarf/z9.go": true,
+ "fixedbugs/bug248.go": true, // combines errorcheckdir and rundir in the same dir.
+ "fixedbugs/bug302.go": true, // tests both .$O and .a imports.
+ "fixedbugs/bug313.go": true, // errorcheckdir with failures in the middle.
+ "fixedbugs/bug345.go": true, // needs the appropriate flags in gc invocation.
+ "fixedbugs/bug369.go": true, // needs compiler flags.
+ "fixedbugs/bug385_32.go": true, // arch-specific errors.
+ "fixedbugs/bug385_64.go": true, // arch-specific errors.
+ "fixedbugs/bug429.go": true,
+ "bugs/bug395.go": true,
}