Revision d9b2fe601b793741633d77606c4618e63612fbb2 authored by Chris Lattner on 10 January 2016, 04:17:56 UTC, committed by Chris Lattner on 10 January 2016, 04:17:56 UTC
1 parent 0fbbf59
Raw File
unicode_scalar_concat.swift
// RUN: %target-swift-frontend -emit-silgen %s | FileCheck %s

// Check that string literals that are unicode scalar literals 
// are emitted as string_literal instead of integers.
func zzz() -> String {
    return "1"+"2"
}
// CHECK: string_literal utf8 "1"
// CHECK: string_literal utf8 "2"
back to top