Files
swift-mirror/test/Interpreter/repl_diagnostics.swift
Max Moiseev 830b2edf54 [stdlib] Check overflow in integer init from literal
Fixes: <rdar://problem/29911715>
And partially: <rdar://problem/29937936>
2017-04-19 11:06:26 -07:00

8 lines
224 B
Swift

// RUN: %target-repl-run-simple-swift | %FileCheck %s
// REQUIRES: swift_repl
var tooLarge = 11111111111111111111111111111
// CHECK: error: integer literal '11111111111111111111111111111' overflows when stored into 'Int'