go/test/fixedbugs
Russ Cox a5d7c1f45e errchk: allow multiple patterns
// ERROR "pattern1" "pattern2"

means that there has to be one or more
lines matching pattern1 and then excluding
those, there have to be one or more lines
matching pattern2.  So if you expect two
different error messages from a particular
line, writing two separate patterns checks
that both errors are produced.

Also, errchk now flags lines that produce
more errors than expected.  Before, as long as
at least one error matched the pattern, all the
others were ignored.

Revise tests to expect or silence these
additional errors.

R=lvd, r, iant
CC=golang-dev
https://golang.org/cl/4869044
2011-08-16 11:14:26 -04:00
..
bug083.dir
bug088.dir
bug106.dir
bug133.dir
bug160.dir
bug191.dir
bug222.dir
bug226.dir gc: relax assignability of method receivers 2011-05-24 19:48:19 -04:00
bug248.dir fix tree for reflect rename 2011-04-25 13:39:36 -04:00
bug282.dir
bug302.dir gopack: handle long lines in export data 2010-08-11 22:17:20 -07:00
bug306.dir gc: bug306 2010-09-13 15:42:14 -04:00
bug313.dir gc: skip undefined symbols in import . 2010-12-07 16:16:01 -05:00
bug322.dir gc: relax assignability of method receivers 2011-05-24 19:48:19 -04:00
bug324.dir gc: correct handling of unexported method names in embedded interfaces 2011-04-21 08:14:50 -04:00
bug335.dir gc: fix import width bug 2011-04-25 12:08:48 -04:00
bug345.dir gc: avoid package name ambiguity in error messages 2011-06-27 18:44:30 -04:00
bug000.go
bug002.go
bug003.go
bug004.go
bug005.go
bug006.go delete float, complex - code changes 2011-01-19 23:09:00 -05:00
bug007.go delete float, complex - code changes 2011-01-19 23:09:00 -05:00
bug008.go
bug009.go
bug010.go delete float, complex - code changes 2011-01-19 23:09:00 -05:00
bug011.go delete float, complex - code changes 2011-01-19 23:09:00 -05:00
bug012.go
bug013.go
bug014.go
bug015.go
bug016.go test: match gccgo error messages for bug016.go. 2011-03-25 13:31:30 -07:00
bug017.go
bug020.go
bug021.go
bug022.go
bug023.go
bug024.go
bug026.go
bug027.go
bug028.go
bug030.go
bug031.go
bug035.go delete float, complex - code changes 2011-01-19 23:09:00 -05:00
bug036.go
bug037.go
bug038.go
bug039.go
bug040.go
bug045.go test: don't assign address of array to slice. 2010-08-31 07:34:01 -07:00
bug046.go
bug047.go delete float, complex - code changes 2011-01-19 23:09:00 -05:00
bug048.go
bug049.go
bug050.go
bug051.go
bug052.go
bug053.go
bug054.go
bug055.go remove unused labels 2011-03-15 14:05:07 -04:00
bug056.go
bug057.go
bug058.go
bug059.go test: don't assign address of array to slice. 2010-08-31 07:34:01 -07:00
bug060.go
bug061.go
bug062.go
bug063.go
bug064.go
bug065.go
bug066.go
bug067.go
bug068.go
bug069.go test: enable tests using v, ok := <-ch syntax 2011-03-22 10:32:43 -07:00
bug070.go
bug071.go
bug072.go
bug073.go
bug074.go
bug075.go
bug076.go remove unused labels 2011-03-15 14:05:07 -04:00
bug077.go remove unused labels 2011-03-15 14:05:07 -04:00
bug078.go
bug080.go delete float, complex - code changes 2011-01-19 23:09:00 -05:00
bug081.go test: match gccgo error messages for bug081.go. 2011-03-25 15:28:53 -07:00
bug082.go
bug083.go
bug084.go
bug085.go
bug086.go
bug087.go
bug088.go
bug089.go
bug090.go
bug091.go remove unused labels 2011-03-15 14:05:07 -04:00
bug092.go
bug093.go
bug094.go
bug096.go
bug097.go
bug098.go
bug099.go
bug101.go
bug102.go misc cleanup: gofmt + &x -> x[0:] conversion 2010-06-08 17:51:57 -07:00
bug103.go
bug104.go
bug106.go
bug107.go
bug108.go
bug109.go delete float, complex - code changes 2011-01-19 23:09:00 -05:00
bug110.go
bug111.go
bug112.go
bug113.go
bug114.go
bug115.go
bug116.go
bug117.go
bug118.go
bug119.go
bug120.go
bug121.go
bug122.go
bug123.go
bug126.go
bug127.go
bug128.go
bug129.go
bug130.go
bug131.go
bug132.go
bug133.go
bug135.go
bug136.go
bug137.go remove unused labels 2011-03-15 14:05:07 -04:00
bug139.go
bug140.go respect goto restrictions 2011-06-17 06:07:13 -04:00
bug141.go
bug142.go
bug143.go
bug144.go
bug145.go
bug146.go test: don't assign address of array to slice. 2010-08-31 07:34:01 -07:00
bug147.go
bug148.go
bug149.go
bug150.go
bug151.go
bug152.go
bug154.go
bug155.go
bug156.go
bug157.go
bug158.go
bug159.go
bug160.go
bug161.go
bug163.go
bug164.go
bug165.go
bug167.go delete float, complex - code changes 2011-01-19 23:09:00 -05:00
bug168.go
bug169.go
bug170.go
bug171.go
bug172.go
bug173.go
bug174.go
bug175.go
bug176.go
bug177.go fix tree for reflect rename 2011-04-25 13:39:36 -04:00
bug178.go respect goto restrictions 2011-06-17 06:07:13 -04:00
bug179.go remove unused labels 2011-03-15 14:05:07 -04:00
bug180.go
bug181.go
bug182.go
bug183.go
bug184.go
bug185.go
bug186.go
bug187.go
bug188.go
bug189.go
bug190.go
bug191.go
bug192.go
bug193.go delete float, complex - code changes 2011-01-19 23:09:00 -05:00
bug194.go
bug195.go test: gccgo and gc print the error on different lines. 2010-08-31 14:12:23 -07:00
bug196.go test: enable tests using v, ok := <-ch syntax 2011-03-22 10:32:43 -07:00
bug197.go
bug198.go
bug199.go
bug200.go
bug201.go
bug202.go
bug203.go
bug204.go
bug205.go errchk: allow multiple patterns 2011-08-16 11:14:26 -04:00
bug206.go go/ast: use token.Pos instead of token.Position; adjust all dependent code 2010-12-06 14:23:18 -08:00
bug207.go
bug208.go
bug209.go
bug211.go
bug212.go
bug213.go
bug214.go
bug215.go
bug216.go
bug217.go
bug218.go
bug219.go test: do not depend on implicit if condition 2011-02-22 18:23:14 -05:00
bug220.go delete float, complex - code changes 2011-01-19 23:09:00 -05:00
bug221.go
bug222.go
bug223.go
bug224.go
bug225.go
bug226.go
bug227.go
bug228.go errchk: allow multiple patterns 2011-08-16 11:14:26 -04:00
bug229.go errchk: allow multiple patterns 2011-08-16 11:14:26 -04:00
bug230.go delete float, complex - code changes 2011-01-19 23:09:00 -05:00
bug231.go errchk: allow multiple patterns 2011-08-16 11:14:26 -04:00
bug232.go remove uses of ... from tree, add one test 2010-06-14 11:23:11 -07:00
bug233.go
bug234.go test: enable tests using v, ok := <-ch syntax 2011-03-22 10:32:43 -07:00
bug235.go
bug236.go
bug237.go
bug238.go gc: implement goto restriction 2011-06-17 15:25:05 -04:00
bug239.go
bug240.go
bug241.go
bug242.go test: enable tests using v, ok := <-ch syntax 2011-03-22 10:32:43 -07:00
bug243.go os.Error API: don't export os.ErrorString, use os.NewError consistently 2011-06-22 10:52:47 -07:00
bug244.go
bug245.go
bug246.go
bug247.go
bug248.go
bug249.go
bug250.go
bug251.go test: Match gccgo error messages. 2010-08-31 15:48:04 -07:00
bug252.go gc: remove interim ... error which rejects valid code. 2011-03-25 18:31:55 -07:00
bug253.go
bug254.go
bug255.go test: Recognize gccgo error messages. 2010-08-31 17:38:11 -07:00
bug256.go
bug257.go
bug258.go
bug259.go
bug260.go gc: align structs according to max alignment of fields 2010-12-13 16:22:19 -05:00
bug261.go
bug262.go
bug263.go
bug264.go
bug265.go
bug266.go
bug267.go
bug268.go
bug269.go
bug270.go
bug271.go
bug272.go
bug273.go gc: zero-width struct, zero-length array fixes 2011-07-27 16:47:45 -04:00
bug274.go gc: line number + type checking nits 2011-07-28 12:31:16 -04:00
bug275.go
bug276.go
bug277.go
bug278.go test: Recognize gccgo error messages. 2010-09-01 21:04:57 -07:00
bug279.go
bug280.go
bug281.go
bug282.go
bug283.go 8g: out of register bug 2010-05-24 17:22:51 -07:00
bug284.go test: Match gccgo error messages. 2010-09-01 21:05:31 -07:00
bug285.go gc: new typechecking rules 2010-06-08 18:50:02 -07:00
bug286.go gc: fix handling of types inside function bodies 2010-07-15 14:25:50 -07:00
bug287.go 8g: out of register bug fix 2010-06-30 20:45:50 -07:00
bug288.go 8g: out of register bug fix 2010-06-30 20:45:50 -07:00
bug289.go Test case that gccgo fails (crashes rather than printing error). 2010-07-12 06:34:36 -07:00
bug290.go gc: fix handling of types inside function bodies 2010-07-15 14:25:50 -07:00
bug291.go gc: bug291 2010-07-15 15:17:42 -07:00
bug292.go gc: bug292 2010-07-15 16:13:47 -07:00
bug293.go gc: bug293 2010-07-15 16:14:06 -07:00
bug294.go gc: bug294 2010-07-15 16:42:32 -07:00
bug295.go gc: import dot shadowing bug 2010-07-26 14:21:39 -07:00
bug296.go test: Actually run bug296. 2010-09-08 13:56:49 -07:00
bug297.go errchk: allow multiple patterns 2011-08-16 11:14:26 -04:00
bug298.go gc: line number + type checking nits 2011-07-28 12:31:16 -04:00
bug299.go delete float, complex - code changes 2011-01-19 23:09:00 -05:00
bug300.go gc: bug299, bug300 2010-08-03 00:53:32 -07:00
bug301.go gc: bug301 2010-08-03 01:07:40 -07:00
bug302.go gopack: handle long lines in export data 2010-08-11 22:17:20 -07:00
bug303.go 6g, 8g: handle slice by sub-word-sized index (uint8, int8, uint16, int16) 2010-08-11 22:27:47 -07:00
bug304.go test: Add testcase which crashes gccgo. 2010-08-24 13:08:05 -07:00
bug305.go fix build 2010-09-15 17:00:00 -07:00
bug306.go gc: bug306 2010-09-13 15:42:14 -04:00
bug307.go delete float, complex - code changes 2011-01-19 23:09:00 -05:00
bug308.go gc: bug308 2010-09-30 15:05:01 -04:00
bug309.go gc: various bugs 2010-10-03 11:50:44 -04:00
bug310.go gc: various bugs 2010-10-03 11:50:44 -04:00
bug311.go runtime: correct iteration of large map values 2010-10-06 11:54:41 -04:00
bug312.go gc: select receive with implicit conversion 2010-10-20 16:38:25 -04:00
bug313.go gc: skip undefined symbols in import . 2010-12-07 16:16:01 -05:00
bug314.go gc: fix method offsets of anonymous interfaces 2010-12-07 12:56:26 -05:00
bug315.go delete float, complex - code changes 2011-01-19 23:09:00 -05:00
bug316.go delete float, complex - code changes 2011-01-19 23:09:00 -05:00
bug317.go gc: fix &^= 2011-01-06 11:21:18 -05:00
bug318.go gc: fix typed constant declarations 2011-01-18 11:24:49 -05:00
bug319.go 6g: fix uint64(uintptr(unsafe.Pointer(&x))) 2011-01-20 12:50:35 -05:00
bug320.go gc: select receive bug fix 2011-02-02 18:34:09 -05:00
bug321.go gc: correct rounding of denormal constants 2011-02-02 22:36:54 -05:00
bug322.go gc: relax assignability of method receivers 2011-05-24 19:48:19 -04:00
bug323.go test: match gccgo error messages for bug323.go. 2011-03-27 20:38:28 -07:00
bug324.go gc: correct handling of unexported method names in embedded interfaces 2011-04-21 08:14:50 -04:00
bug325.go test: match gccgo error messages for bug325.go. 2011-03-27 12:10:50 -07:00
bug326.go gc: fix handling of return values named _ 2011-03-07 19:36:17 -05:00
bug327.go bug327: document what's being tested 2011-04-08 13:42:20 -04:00
bug328.go gc: print of unsafe.Pointer 2011-04-15 16:16:20 -04:00
bug329.go gc: fix complex move again 2011-04-18 13:22:31 -04:00
bug330.go gc: fix error for +string 2011-04-20 16:12:47 -04:00
bug331.go gc: fix return variable named _ 2011-04-23 10:54:19 -04:00
bug332.go gc: fix line number at EOF 2011-04-23 10:54:05 -04:00
bug333.go gc: fix conversion of user-defined string type to []byte 2011-04-23 10:55:32 -04:00
bug334.go gc: allow complex types to be receiver types 2011-04-25 12:02:54 -04:00
bug335.go gc: fix import width bug 2011-04-25 12:08:48 -04:00
bug336.go gc: correctly handle fields of pointer type to recursive forward references 2011-04-28 00:13:49 -04:00
bug337.go gc: preserve original expression for errors 2011-04-28 13:14:35 -04:00
bug338.go gc: fix unsafe.Sizeof 2011-05-10 17:00:15 -04:00
bug339.go gc: fix unsafe.Sizeof 2011-05-10 17:00:15 -04:00
bug340.go gc: fix type switch error message for invalid cases. 2011-05-11 23:41:59 -04:00
bug341.go 8g: fix conversion from float to uint64 2011-05-16 22:14:56 -04:00
bug342.go gc: check parameter declarations in interface fields 2011-05-31 13:41:32 -04:00
bug343.go gc: fix m[x], _ = y.(T) 2011-05-31 15:52:04 -04:00
bug344.go gc: implement goto restriction 2011-06-17 15:25:05 -04:00
bug345.go gc: avoid package name ambiguity in error messages 2011-06-27 18:44:30 -04:00
bug346.go gc: fix closure bug 2011-07-14 18:13:39 +02:00
bug347.go gc: fix select line number 2011-07-26 00:52:17 -04:00
bug348.go gc, runtime: fix range+panic line number bugs 2011-07-26 00:52:46 -04:00
bug349.go gc: echo literal in error message 2011-07-27 14:36:21 -04:00
bug350.go gc: use more Go-like names for methods 2011-07-27 17:56:13 -04:00
bug351.go errchk: allow multiple patterns 2011-08-16 11:14:26 -04:00
bug352.go gc: zero-width struct, zero-length array fixes 2011-07-27 16:47:45 -04:00
bug353.go gc: line number + type checking nits 2011-07-28 12:31:16 -04:00
bug354.go gc: composite literal double eval bug 2011-07-27 18:55:30 -04:00
bug355.go gc: top-level closure bug 2011-07-27 19:31:11 -04:00
bug356.go 5g, 6g, 8g: shift, opt fixes 2011-07-28 18:22:12 -04:00
bug357.go gc: line number + type checking nits 2011-07-28 12:31:16 -04:00
bug358.go gc: line number + type checking nits 2011-07-28 12:31:16 -04:00
bug359.go errchk: allow multiple patterns 2011-08-16 11:14:26 -04:00
bug361.go gc: another width test 2011-07-28 12:32:43 -04:00
bug362.go gc: iota outside const 2011-07-27 14:45:27 -04:00
bug363.go gc: shift type bug 2011-07-28 13:03:30 -04:00
bug364.go 5g: defer vs optimizer bug 2011-07-28 16:28:23 -04:00
bug365.go gc: more graceful errors during struct definition 2011-07-28 20:41:18 -04:00
bug1515.go gc: make string const comparison unsigned 2011-02-16 17:57:15 -05:00