blob: a62058e39fe489925b2a8e6da20f0137196809e9 [file] [log] [blame]
/*
* Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
* for details. All rights reserved. Use of this source code is governed by a
* BSD-style license that can be found in the LICENSE file.
*/
/**
* @assertion It is a compile-time error when a non-raw string literal contains
* a character sequence of the form \x that is not followed by a sequence of
* two hexadecimal digits.
* @description Checks that it is a compile-time error if a string literal
* contains a character sequence of the form \x that is followed only by one
* hexadecimal digit.
* @compile-error
* @author msyabro
* @reviewer rodionov
*/
main() {
try {
"\x1";
} catch (e) {}
}