2008-07-14 20:31:06 -06:00
|
|
|
// errchk $G $D/$F.go
|
2008-07-10 14:45:02 -06:00
|
|
|
|
|
|
|
// 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.
|
|
|
|
|
2008-09-04 17:48:19 -06:00
|
|
|
// RESOLUTION: This program is illegal. We should reject all unnecessary backslashes.
|
|
|
|
|
2008-07-10 14:45:02 -06:00
|
|
|
package main
|
|
|
|
|
|
|
|
const c = '\''; // this works
|
|
|
|
const s = "\'"; // this doesn't
|
|
|
|
|
|
|
|
/*
|
|
|
|
There is no reason why the escapes need to be different inside strings and chars.
|
|
|
|
|
2008-09-04 17:48:19 -06:00
|
|
|
uetli:~/go/test/bugs gri$ 6g bug068.go
|
|
|
|
bug068.go:6: unknown escape sequence: '
|
2008-07-10 14:45:02 -06:00
|
|
|
*/
|