Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestIssue59180 (0.1 sec)

  1. src/go/parser/parser_test.go

    					t.Errorf("%s: got offset %v, want %v", src, pos.Offset, strings.Index(src, "range"))
    				}
    			}
    			return true
    		})
    	}
    }
    
    // TestIssue59180 tests that line number overflow doesn't cause an infinite loop.
    func TestIssue59180(t *testing.T) {
    	testcases := []string{
    		"package p\n//line :9223372036854775806\n\n//",
    		"package p\n//line :1:9223372036854775806\n\n//",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 31 20:26:14 UTC 2024
    - 24.6K bytes
    - Viewed (0)
Back to top