Files
swift-mirror/test/Parse/source_locs.swift
Saleem Abdulrasool 7895a4e6d5 test: unixise path for Parse.source_locs (NFCI)
Use the Unix style path for the test.
2020-06-28 21:45:11 -07:00

12 lines
436 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