Files
swift-mirror/test/Interpreter/SDK/Foundation_NSExpression.swift
Graham Batty 83b4384fac Update test flags for linux failures and support.
Also removed the sdk 'feature' in favour of the more specific
objc_interop.

Swift SVN r24856
2015-01-30 21:31:48 +00:00

16 lines
368 B
Swift

// RUN: %target-run-simple-swift | FileCheck %s
// rdar://16726530
// REQUIRES: objc_interop
import Foundation
// Test overlain variadic methods.
let expression = NSExpression(format: "(3 + 2)**2", "LLLL", "BBBB")
let result = expression.expressionValueWithObject(expression, context:nil) as! NSNumber
let number = result.stringValue
println(number)
// CHECK: 25