Files
swift-mirror/test/ClangModules/cvars_parse.swift
Graham Batty 0c281d5a23 Use --sysroot instead of -isysroot on non-Darwin
Clang does not properly set up the include root on non-darwin
platforms with -isysroot, so use --sysroot on those platforms
instead.

Swift SVN r26102
2015-03-13 16:32:09 +00:00

15 lines
408 B
Swift

// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -parse -verify %s
import cvars
func getPI() -> Float {
return PI
}
func testPointers() {
let cp = globalConstPointer
cp.abcde() // expected-error {{'UnsafePointer<Void>' does not have a member named 'abcde'}}
let mp = globalPointer
mp.abcde() // expected-error {{'UnsafeMutablePointer<Void>' does not have a member named 'abcde'}}
}