blob: 98e96eb76a4bc64d28bba191bbb1f0c641081594 [file] [log] [blame]
// Check source locations (only InterpolatedStringLiteral for now).
func string_interpolation() {
"\("abc")"
<#Int#>
}
// RUN: not %target-swift-frontend -dump-ast %s | %FileCheck %s
// CHECK: (interpolated_string_literal_expr {{.*}} trailing_quote_loc=SOURCE_DIR{{/|\\}}test{{/|\\}}Parse{{/|\\}}source_locs.swift:4:12 {{.*}}
// CHECK: (editor_placeholder_expr type='()' {{.*}} trailing_angle_bracket_loc=SOURCE_DIR{{/|\\}}test{{/|\\}}Parse{{/|\\}}source_locs.swift:5:9