mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
12 lines
477 B
Swift
12 lines
477 B
Swift
// 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
|
|
|