go/test/fixedbugs
Ian Lance Taylor 387e7c2742 test: explicitly use variables to avoid gccgo "not used" error
I haven't looked at the source, but the gc compiler appears to
omit "not used" errors when there is an error in the
initializer.  This is harder to do in gccgo, and frankly I
think the "not used" error is still useful even if the
initializer has a problem.  This CL tweaks some tests to avoid
the error, which is not the point of these tests in any case.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5561059
2012-01-22 11:50:45 -08:00
..
bug083.dir
bug088.dir
bug106.dir
bug133.dir
bug160.dir
bug191.dir
bug222.dir
bug248.dir gc: detect type switch variable not used cases. 2011-11-04 17:03:50 +01:00
bug282.dir
bug302.dir
bug306.dir
bug313.dir
bug322.dir
bug324.dir
bug335.dir
bug345.dir test: match gccgo error messages for bug345 2012-01-17 18:00:34 -08:00
bug367.dir gc: 0 expected bugs 2011-12-09 14:58:28 -05:00
bug369.dir 5g, 6g, 8g: registerize variables again 2011-10-03 17:46:36 -04:00
bug377.dir gc: Preserve original blank name for .anon substitution on out params. 2011-11-09 11:27:27 +01:00
bug382.dir gc: fix use of stackallocated AST node in generation of static initialisation code. 2011-12-13 09:09:10 +01:00
bug392.dir gc: inlining bug 2012-01-11 20:32:02 -05:00
bug396.dir gc: fieldnames in structliterals in exported inlines should not be qualified if they're embedded builtin types. 2012-01-18 17:51:28 +01:00
bug000.go
bug002.go
bug003.go
bug004.go
bug005.go
bug006.go
bug007.go
bug008.go
bug009.go
bug010.go
bug011.go
bug012.go
bug013.go
bug014.go test: explicitly use variables to avoid gccgo "not used" error 2012-01-22 11:50:45 -08:00
bug015.go
bug016.go
bug017.go
bug020.go
bug021.go
bug022.go
bug023.go
bug024.go
bug026.go
bug027.go test: change several tests to not print 2012-01-18 14:31:31 -08:00
bug028.go
bug030.go
bug031.go
bug035.go
bug036.go
bug037.go
bug038.go
bug039.go
bug040.go
bug045.go
bug046.go
bug047.go
bug048.go
bug049.go
bug050.go
bug051.go
bug052.go
bug053.go
bug054.go
bug055.go
bug056.go
bug057.go
bug058.go
bug059.go
bug060.go
bug061.go
bug062.go
bug063.go
bug064.go
bug065.go
bug066.go
bug067.go test: split golden.out into expected output per test 2012-01-18 16:12:24 -08:00
bug068.go
bug069.go
bug070.go test: change several tests to not print 2012-01-18 14:31:31 -08:00
bug071.go
bug072.go
bug073.go
bug074.go
bug075.go
bug076.go
bug077.go
bug078.go
bug080.go
bug081.go
bug082.go
bug083.go
bug084.go
bug085.go
bug086.go
bug087.go
bug088.go
bug089.go
bug090.go
bug091.go
bug092.go
bug093.go test: silence/coalesce some tests 2011-09-26 19:35:21 -04:00
bug094.go
bug096.go
bug097.go
bug098.go
bug099.go
bug101.go
bug102.go
bug103.go
bug104.go
bug106.go
bug107.go test: make bug107 os.Error-proof 2011-10-31 17:50:38 -04:00
bug108.go test: explicitly use variables to avoid gccgo "not used" error 2012-01-22 11:50:45 -08:00
bug109.go
bug110.go
bug111.go
bug112.go
bug113.go test: silence/coalesce some tests 2011-09-26 19:35:21 -04:00
bug114.go
bug115.go
bug116.go
bug117.go
bug118.go
bug119.go
bug120.go use new strconv API 2011-12-05 15:48:46 -05:00
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
bug139.go
bug140.go
bug141.go gc: detect type switch variable not used cases. 2011-11-04 17:03:50 +01:00
bug142.go
bug143.go
bug144.go
bug145.go
bug146.go
bug147.go
bug148.go test: silence/coalesce some tests 2011-09-26 19:35:21 -04:00
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
bug168.go
bug169.go
bug170.go
bug171.go
bug172.go
bug173.go
bug174.go
bug175.go test: explicitly use variables to avoid gccgo "not used" error 2012-01-22 11:50:45 -08:00
bug176.go
bug177.go
bug178.go
bug179.go
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
bug194.go
bug195.go
bug196.go
bug197.go
bug198.go
bug199.go
bug200.go gc: detect type switch variable not used cases. 2011-11-04 17:03:50 +01:00
bug201.go
bug202.go
bug203.go
bug204.go cgo, goyacc, go/build, html, http, path, path/filepath, testing/quick, test: use rune 2011-10-25 22:20:02 -07:00
bug205.go
bug206.go
bug207.go
bug208.go
bug209.go
bug211.go
bug212.go
bug213.go gc: detect type switch variable not used cases. 2011-11-04 17:03:50 +01:00
bug214.go
bug215.go
bug216.go
bug217.go
bug218.go
bug219.go
bug221.go
bug222.go
bug223.go
bug224.go
bug225.go
bug227.go
bug228.go
bug229.go testing: allow benchmarks to print and fail 2011-12-20 09:51:39 -08:00
bug230.go
bug231.go
bug232.go
bug233.go
bug234.go
bug235.go
bug236.go
bug237.go
bug238.go
bug239.go
bug240.go
bug241.go
bug242.go gc: remove m[k] = x, false 2011-11-11 16:48:25 -05:00
bug243.go non-pkg: gofix -r error -force=error 2011-11-01 22:06:05 -04:00
bug244.go
bug245.go
bug246.go
bug247.go
bug248.go
bug249.go
bug250.go
bug251.go gc: Clean up dostruct/stotype, detect broken fields and propagate up to structs and functions to supress spurious errors. 2011-11-07 21:35:13 +01:00
bug252.go
bug253.go
bug254.go
bug255.go
bug256.go
bug257.go Add a []byte argument to hash.Hash to allow an allocation to be saved. 2011-12-01 12:35:37 -05:00
bug258.go
bug259.go
bug260.go use new strconv API 2011-12-05 15:48:46 -05:00
bug261.go
bug262.go non-pkg: gofix -r error -force=error 2011-11-01 22:06:05 -04:00
bug263.go
bug264.go
bug265.go
bug266.go
bug267.go
bug269.go
bug271.go
bug272.go
bug273.go
bug274.go
bug275.go
bug276.go
bug277.go
bug278.go
bug279.go
bug280.go
bug281.go
bug282.go
bug283.go
bug284.go
bug285.go gc: remove func, map compare 2011-11-13 22:58:08 -05:00
bug286.go non-pkg: gofix -r error -force=error 2011-11-01 22:06:05 -04:00
bug287.go
bug288.go
bug289.go
bug290.go
bug291.go
bug292.go
bug293.go
bug294.go
bug295.go
bug296.go
bug297.go
bug298.go
bug299.go
bug300.go
bug301.go
bug302.go
bug303.go
bug304.go
bug305.go
bug306.go
bug307.go
bug308.go
bug309.go gc: detect type switch variable not used cases. 2011-11-04 17:03:50 +01:00
bug311.go
bug312.go
bug313.go
bug314.go
bug315.go
bug316.go
bug317.go
bug318.go
bug319.go
bug320.go
bug321.go
bug322.go
bug323.go
bug324.go
bug325.go
bug326.go non-pkg: gofix -r error -force=error 2011-11-01 22:06:05 -04:00
bug327.go
bug328.go test: split golden.out into expected output per test 2012-01-18 16:12:24 -08:00
bug328.out test: split golden.out into expected output per test 2012-01-18 16:12:24 -08:00
bug329.go
bug330.go
bug331.go non-pkg: gofix -r error -force=error 2011-11-01 22:06:05 -04:00
bug332.go
bug333.go
bug334.go
bug335.go
bug336.go
bug337.go test: match gccgo error message for bug337.go 2011-09-20 09:31:07 -07:00
bug338.go
bug339.go
bug340.go gc: Better typechecks and errors in switches. 2011-11-09 10:58:53 +01:00
bug341.go
bug342.go
bug343.go
bug344.go test: match gccgo error messages for goto.go and bug344.go 2011-09-20 14:45:54 -07:00
bug345.go
bug346.go
bug347.go
bug348.go
bug349.go test: match gccgo error messages for bug349.go 2011-09-20 14:47:48 -07:00
bug350.go test: match gccgo error messages 2011-09-23 21:23:40 -07:00
bug351.go test: match gccgo error messages 2011-09-23 21:23:40 -07:00
bug352.go
bug353.go test: match gccgo error messages 2011-09-20 16:47:17 -07:00
bug354.go non-pkg: gofix -r error -force=error 2011-11-01 22:06:05 -04:00
bug355.go
bug356.go
bug357.go test: match gccgo error messages 2011-09-20 16:47:17 -07:00
bug358.go renaming_1: hand-edited files for go 1 renaming 2011-11-08 15:38:47 -08:00
bug361.go
bug362.go test: match gccgo error messages 2011-09-20 16:47:17 -07:00
bug363.go test: explicitly use variables to avoid gccgo "not used" error 2012-01-22 11:50:45 -08:00
bug364.go test: fix bug364 to actually run 2012-01-17 18:00:11 -08:00
bug365.go test: error-related fixes 2011-10-27 19:41:39 -07:00
bug366.go
bug367.go gc: 0 expected bugs 2011-12-09 14:58:28 -05:00
bug368.go 5g: fix -f() 2011-09-29 12:09:46 -04:00
bug369.go Fix build, disabling flaky registerization test. 2011-10-03 17:25:55 -07:00
bug370.go runtime: fix spurious deadlock reporting 2011-10-06 18:10:14 +03:00
bug371.go gc: helpful message instead of internal error on method call on pointer to pointer. 2011-11-02 17:18:53 +01:00
bug372.go gc: Don't pollute the xmethod list with non-methods. 2011-11-03 17:51:15 +01:00
bug373.go gc: detect type switch variable not used cases. 2011-11-04 17:03:50 +01:00
bug374.go gc: Clean up dostruct/stotype, detect broken fields and propagate up to structs and functions to supress spurious errors. 2011-11-07 21:35:13 +01:00
bug375.go gc: Better typechecks and errors in switches. 2011-11-09 10:58:53 +01:00
bug376.go gc: better error for non-calling use of unsafe builtins. 2011-11-09 18:30:54 +01:00
bug377.go gofmt: do not stop test.sh after 1 error 2011-11-16 18:44:21 -05:00
bug378.go gc: fix copying of types 2011-11-28 11:52:16 -05:00
bug379.go gc: keep pointer to original node in constant rewrites. 2011-12-07 16:18:50 -05:00
bug380.go gc: fix spurious typecheck loop in &composite literal 2011-12-07 15:48:55 -05:00
bug381.go gc: keep pointer to original node in constant rewrites. 2011-12-07 16:18:50 -05:00
bug382.go gc: fix use of stackallocated AST node in generation of static initialisation code. 2011-12-13 09:09:10 +01:00
bug383.go gc: Use %#F in error messages instead of %F. 2011-12-14 08:22:36 +01:00
bug384.go gc: suppress non-root cause message for bad receivers. 2011-12-14 08:21:37 +01:00
bug385_32.go gc: Nicer errors before miscompiling. 2012-01-10 11:19:22 +01:00
bug385_64.go gc: Nicer errors before miscompiling. 2012-01-10 11:19:22 +01:00
bug386.go gc: use inferred type rather than original one when reporting non-assignability. 2011-12-14 17:34:35 +01:00
bug387.go gc: add forgotten typecheck in a lonely corner of sinit 2011-12-14 15:54:10 +01:00
bug388.go gc: disallow declaration of variables outside package. 2012-01-10 11:18:56 +01:00
bug389.go gc: omit argument names from function types in error messages 2011-12-15 17:38:47 +01:00
bug390.go gc: improve unsafe.Pointer type-check error messages 2012-01-06 14:34:16 -08:00
bug391.go gc: remove now redundant typecheck of ->ninit on switches. 2012-01-09 21:42:24 +01:00
bug392.go gc: fix inlining bug 2012-01-11 13:21:06 -08:00
bug393.go gc: do not compile switch on interface values into a binary search. 2012-01-14 17:00:14 +01:00
bug394.go gc: don't fault on return outside function 2012-01-16 18:12:25 -05:00
bug396.go gc: fieldnames in structliterals in exported inlines should not be qualified if they're embedded builtin types. 2012-01-18 17:51:28 +01:00
bug397.go gc: do not try to add a key with incorrect type to a hash 2012-01-20 13:34:38 -05:00
bug1515.go