forked from swiftlang/swift
-
Notifications
You must be signed in to change notification settings - Fork 0
/
basicIdentity.swift
65 lines (52 loc) · 927 Bytes
/
basicIdentity.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
// RUN: %swift -parse %s -verify -D FOO -D BAZ -target x86_64-apple-macosx10.9 -parse-stdlib
struct Foo {}
#if FOO
var a = Foo()
#endif
var b = a
#if !BAR
var c = Foo()
#endif
var d = c
#if FOO || BAR
var e = Foo()
#endif
var f = e
#if BAR || FOO
var g = Foo()
#endif
var h = g
#if FOO && BAZ
var i = Foo()
#endif
var j = i
#if os(OSX)
var k = Foo()
#endif
var l = k
#if arch(x86_64)
var m = Foo()
#endif
var n = m
#if FOO && !BAR && BAZ && os(OSX) && arch(x86_64) && _runtime(_ObjC)
var o = Foo()
#endif
var p = o
#if FOO && (!BAR && BAZ && os(OSX) && arch(x86_64)) && _runtime(_ObjC)
var q = Foo()
#endif
var r = q
#if FOO && !(!BAZ && BAZ && os(OSX) && arch(x86_64)) && _runtime(_ObjC)
var s = Foo()
#endif
var t = s
// Test symmetric version of FOO || BAR from above
#if BAR || FOO
var u = Foo()
#endif
var v = u
// Test symmetric version of FOO && BAR from above
#if BAZ && FOO
var w = Foo()
#endif
var x = w