blob: 516fd9116be4e6479e285fc0f53706f51c62c0ad [file] [log] [blame]
// Copyright (c) 2020, 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.
// test w/ `dart test -N use_raw_strings`
f(o){
f('\\'); // LINT
f('\$'); // LINT
f('\$ and \\'); // LINT
f('\$ and \\ and \n'); // OK
f('\$ and \\ and $f'); // OK
f('''\\'''); // LINT
f('''\$'''); // LINT
f('''\$ and \\'''); // LINT
f('''\$ and \\ and \n'''); // OK
f('''\$ and \\ and $f'''); // OK
f(r'\\'); // OK
f(r'\$'); // OK
f(r'\$ and \\'); // OK
f(r'\$ and \\ and \n'); // OK
f(r'\$ and \\ and $f'); // OK
}