Skip to content

Commit dd3f916

Browse files
committed
Reflection: Update tests for latest reflection changes
1 parent 940a3a7 commit dd3f916

23 files changed

+55
-55
lines changed

validation-test/Reflection/reflect_Array.swift

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: rm -rf %t && mkdir -p %t
2-
// RUN: %target-build-swift -Xfrontend -enable-reflection-metadata -Xfrontend -enable-reflection-names -lswiftSwiftReflectionTest %s -o %t/reflect_Array
2+
// RUN: %target-build-swift -lswiftSwiftReflectionTest %s -o %t/reflect_Array
33
// RUN: %target-run %target-swift-reflection-test %t/reflect_Array 2>&1 | FileCheck %s --check-prefix=CHECK-%target-ptrsize
44
// REQUIRES: objc_interop
55

@@ -25,11 +25,11 @@ reflect(object: obj)
2525
// CHECK-64: (class_instance size=24 alignment=16 stride=32 num_extra_inhabitants=0
2626
// CHECK-64: (field name=t offset=16
2727
// CHECK-64: (struct size=8 alignment=8 stride=8 num_extra_inhabitants=1
28-
// CHECK-64: (field offset=0
28+
// CHECK-64: (field name=_buffer offset=0
2929
// CHECK-64: (struct size=8 alignment=8 stride=8 num_extra_inhabitants=1
30-
// CHECK-64: (field offset=0
30+
// CHECK-64: (field name=_storage offset=0
3131
// CHECK-64: (struct size=8 alignment=8 stride=8 num_extra_inhabitants=1
32-
// CHECK-64: (field offset=0
32+
// CHECK-64: (field name=rawValue offset=0
3333
// CHECK-64: (builtin size=8 alignment=8 stride=8 num_extra_inhabitants=1)))))))))
3434

3535
// CHECK-32: Reflecting an object.
@@ -41,11 +41,11 @@ reflect(object: obj)
4141
// CHECK-32: (class_instance size=16 alignment=16 stride=16 num_extra_inhabitants=0
4242
// CHECK-32: (field name=t offset=12
4343
// CHECK-32: (struct size=4 alignment=4 stride=4 num_extra_inhabitants=1
44-
// CHECK-32: (field offset=0
44+
// CHECK-32: (field name=_buffer offset=0
4545
// CHECK-32: (struct size=4 alignment=4 stride=4 num_extra_inhabitants=1
46-
// CHECK-32: (field offset=0
46+
// CHECK-32: (field name=_storage offset=0
4747
// CHECK-32: (struct size=4 alignment=4 stride=4 num_extra_inhabitants=1
48-
// CHECK-32: (field offset=0
48+
// CHECK-32: (field name=rawValue offset=0
4949
// CHECK-32: (builtin size=4 alignment=4 stride=4 num_extra_inhabitants=1)))))))))
5050

5151
reflect(any: obj)

validation-test/Reflection/reflect_Bool.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: rm -rf %t && mkdir -p %t
2-
// RUN: %target-build-swift -Xfrontend -enable-reflection-metadata -Xfrontend -enable-reflection-names -lswiftSwiftReflectionTest %s -o %t/reflect_Bool
2+
// RUN: %target-build-swift -lswiftSwiftReflectionTest %s -o %t/reflect_Bool
33
// RUN: %target-run %target-swift-reflection-test %t/reflect_Bool 2>&1 | FileCheck %s --check-prefix=CHECK-%target-ptrsize
44
// REQUIRES: objc_interop
55

@@ -25,7 +25,7 @@ reflect(object: obj)
2525
// CHECK-64: (class_instance size=17 alignment=16 stride=32 num_extra_inhabitants=0
2626
// CHECK-64: (field name=t offset=16
2727
// CHECK-64: (struct size=1 alignment=1 stride=1 num_extra_inhabitants=254
28-
// CHECK-64: (field offset=0
28+
// CHECK-64: (field name=_value offset=0
2929
// CHECK-64: (builtin size=1 alignment=1 stride=1 num_extra_inhabitants=254)))))
3030

3131
// CHECK-32: Reflecting an object.
@@ -37,7 +37,7 @@ reflect(object: obj)
3737
// CHECK-32: (class_instance size=13 alignment=16 stride=16 num_extra_inhabitants=0
3838
// CHECK-32: (field name=t offset=12
3939
// CHECK-32: (struct size=1 alignment=1 stride=1 num_extra_inhabitants=254
40-
// CHECK-32: (field offset=0
40+
// CHECK-32: (field name=_value offset=0
4141
// CHECK-32: (builtin size=1 alignment=1 stride=1 num_extra_inhabitants=254)))))
4242

4343
reflect(any: obj)

validation-test/Reflection/reflect_Character.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: rm -rf %t && mkdir -p %t
2-
// RUN: %target-build-swift -Xfrontend -enable-reflection-metadata -Xfrontend -enable-reflection-names -lswiftSwiftReflectionTest %s -o %t/reflect_Character
2+
// RUN: %target-build-swift -lswiftSwiftReflectionTest %s -o %t/reflect_Character
33
// RUN: %target-run %target-swift-reflection-test %t/reflect_Character 2>&1 | FileCheck %s --check-prefix=CHECK-%target-ptrsize
44
// REQUIRES: objc_interop
55

validation-test/Reflection/reflect_Dictionary.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: rm -rf %t && mkdir -p %t
2-
// RUN: %target-build-swift -Xfrontend -enable-reflection-metadata -Xfrontend -enable-reflection-names -lswiftSwiftReflectionTest %s -o %t/reflect_Dictionary
2+
// RUN: %target-build-swift -lswiftSwiftReflectionTest %s -o %t/reflect_Dictionary
33
// RUN: %target-run %target-swift-reflection-test %t/reflect_Dictionary 2>&1 | FileCheck %s --check-prefix=CHECK-%target-ptrsize
44
// REQUIRES: objc_interop
55

validation-test/Reflection/reflect_Double.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: rm -rf %t && mkdir -p %t
2-
// RUN: %target-build-swift -Xfrontend -enable-reflection-metadata -Xfrontend -enable-reflection-names -lswiftSwiftReflectionTest %s -o %t/reflect_Double
2+
// RUN: %target-build-swift -lswiftSwiftReflectionTest %s -o %t/reflect_Double
33
// RUN: %target-run %target-swift-reflection-test %t/reflect_Double 2>&1 | FileCheck %s --check-prefix=CHECK-%target-ptrsize
44
// REQUIRES: objc_interop
55

@@ -25,7 +25,7 @@ reflect(object: obj)
2525
// CHECK-64: (class_instance size=24 alignment=16 stride=32 num_extra_inhabitants=0
2626
// CHECK-64: (field name=t offset=16
2727
// CHECK-64: (struct size=8 alignment=8 stride=8 num_extra_inhabitants=0
28-
// CHECK-64: (field offset=0
28+
// CHECK-64: (field name=_value offset=0
2929
// CHECK-64: (builtin size=8 alignment=8 stride=8 num_extra_inhabitants=0)))))
3030

3131
// CHECK-32: Reflecting an object.
@@ -37,7 +37,7 @@ reflect(object: obj)
3737
// CHECK-32: (class_instance size=24 alignment=16 stride=32 num_extra_inhabitants=0
3838
// CHECK-32: (field name=t offset=16
3939
// CHECK-32: (struct size=8 alignment=8 stride=8 num_extra_inhabitants=0
40-
// CHECK-32: (field offset=0
40+
// CHECK-32: (field name=_value offset=0
4141
// CHECK-32: (builtin size=8 alignment=8 stride=8 num_extra_inhabitants=0)))))
4242

4343
reflect(any: obj)

validation-test/Reflection/reflect_Float.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: rm -rf %t && mkdir -p %t
2-
// RUN: %target-build-swift -Xfrontend -enable-reflection-metadata -Xfrontend -enable-reflection-names -lswiftSwiftReflectionTest %s -o %t/reflect_Float
2+
// RUN: %target-build-swift -lswiftSwiftReflectionTest %s -o %t/reflect_Float
33
// RUN: %target-run %target-swift-reflection-test %t/reflect_Float 2>&1 | FileCheck %s --check-prefix=CHECK-%target-ptrsize
44
// REQUIRES: objc_interop
55

@@ -25,7 +25,7 @@ reflect(object: obj)
2525
// CHECK-64: (class_instance size=20 alignment=16 stride=32 num_extra_inhabitants=0
2626
// CHECK-64: (field name=t offset=16
2727
// CHECK-64: (struct size=4 alignment=4 stride=4 num_extra_inhabitants=0
28-
// CHECK-64: (field offset=0
28+
// CHECK-64: (field name=_value offset=0
2929
// CHECK-64: (builtin size=4 alignment=4 stride=4 num_extra_inhabitants=0)))))
3030

3131
// CHECK-32: Reflecting an object.
@@ -37,7 +37,7 @@ reflect(object: obj)
3737
// CHECK-32: (class_instance size=16 alignment=16 stride=16 num_extra_inhabitants=0
3838
// CHECK-32: (field name=t offset=12
3939
// CHECK-32: (struct size=4 alignment=4 stride=4 num_extra_inhabitants=0
40-
// CHECK-32: (field offset=0
40+
// CHECK-32: (field name=_value offset=0
4141
// CHECK-32: (builtin size=4 alignment=4 stride=4 num_extra_inhabitants=0)))))
4242

4343
reflect(any: obj)

validation-test/Reflection/reflect_Int.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: rm -rf %t && mkdir -p %t
2-
// RUN: %target-build-swift -Xfrontend -enable-reflection-metadata -Xfrontend -enable-reflection-names -lswiftSwiftReflectionTest %s -o %t/reflect_Int
2+
// RUN: %target-build-swift -lswiftSwiftReflectionTest %s -o %t/reflect_Int
33
// RUN: %target-run %target-swift-reflection-test %t/reflect_Int 2>&1 | FileCheck %s --check-prefix=CHECK-%target-ptrsize
44
// REQUIRES: objc_interop
55

@@ -25,7 +25,7 @@ reflect(object: obj)
2525
// CHECK-64: (class_instance size=24 alignment=16 stride=32 num_extra_inhabitants=0
2626
// CHECK-64: (field name=t offset=16
2727
// CHECK-64: (struct size=8 alignment=8 stride=8 num_extra_inhabitants=0
28-
// CHECK-64: (field offset=0
28+
// CHECK-64: (field name=_value offset=0
2929
// CHECK-64: (builtin size=8 alignment=8 stride=8 num_extra_inhabitants=0)))))
3030

3131
// CHECK-32: Reflecting an object.
@@ -37,7 +37,7 @@ reflect(object: obj)
3737
// CHECK-32: (class_instance size=16 alignment=16 stride=16 num_extra_inhabitants=0
3838
// CHECK-32: (field name=t offset=12
3939
// CHECK-32: (struct size=4 alignment=4 stride=4 num_extra_inhabitants=0
40-
// CHECK-32: (field offset=0
40+
// CHECK-32: (field name=_value offset=0
4141
// CHECK-32: (builtin size=4 alignment=4 stride=4 num_extra_inhabitants=0)))))
4242

4343
reflect(any: obj)

validation-test/Reflection/reflect_Int16.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: rm -rf %t && mkdir -p %t
2-
// RUN: %target-build-swift -Xfrontend -enable-reflection-metadata -Xfrontend -enable-reflection-names -lswiftSwiftReflectionTest %s -o %t/reflect_Int16
2+
// RUN: %target-build-swift -lswiftSwiftReflectionTest %s -o %t/reflect_Int16
33
// RUN: %target-run %target-swift-reflection-test %t/reflect_Int16 2>&1 | FileCheck %s --check-prefix=CHECK-%target-ptrsize
44
// REQUIRES: objc_interop
55

@@ -25,7 +25,7 @@ reflect(object: obj)
2525
// CHECK-64: (class_instance size=18 alignment=16 stride=32 num_extra_inhabitants=0
2626
// CHECK-64: (field name=t offset=16
2727
// CHECK-64: (struct size=2 alignment=2 stride=2 num_extra_inhabitants=0
28-
// CHECK-64: (field offset=0
28+
// CHECK-64: (field name=_value offset=0
2929
// CHECK-64: (builtin size=2 alignment=2 stride=2 num_extra_inhabitants=0)))))
3030

3131
// CHECK-32: Reflecting an object.
@@ -37,7 +37,7 @@ reflect(object: obj)
3737
// CHECK-32: (class_instance size=14 alignment=16 stride=16 num_extra_inhabitants=0
3838
// CHECK-32: (field name=t offset=12
3939
// CHECK-32: (struct size=2 alignment=2 stride=2 num_extra_inhabitants=0
40-
// CHECK-32: (field offset=0
40+
// CHECK-32: (field name=_value offset=0
4141
// CHECK-32: (builtin size=2 alignment=2 stride=2 num_extra_inhabitants=0)))))
4242

4343
reflect(any: obj)

validation-test/Reflection/reflect_Int32.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: rm -rf %t && mkdir -p %t
2-
// RUN: %target-build-swift -Xfrontend -enable-reflection-metadata -Xfrontend -enable-reflection-names -lswiftSwiftReflectionTest %s -o %t/reflect_Int32
2+
// RUN: %target-build-swift -lswiftSwiftReflectionTest %s -o %t/reflect_Int32
33
// RUN: %target-run %target-swift-reflection-test %t/reflect_Int32 2>&1 | FileCheck %s --check-prefix=CHECK-%target-ptrsize
44
// REQUIRES: objc_interop
55

@@ -25,7 +25,7 @@ reflect(object: obj)
2525
// CHECK-64: (class_instance size=20 alignment=16 stride=32 num_extra_inhabitants=0
2626
// CHECK-64: (field name=t offset=16
2727
// CHECK-64: (struct size=4 alignment=4 stride=4 num_extra_inhabitants=0
28-
// CHECK-64: (field offset=0
28+
// CHECK-64: (field name=_value offset=0
2929
// CHECK-64: (builtin size=4 alignment=4 stride=4 num_extra_inhabitants=0)))))
3030

3131
// CHECK-32: Reflecting an object.
@@ -37,7 +37,7 @@ reflect(object: obj)
3737
// CHECK-32: (class_instance size=16 alignment=16 stride=16 num_extra_inhabitants=0
3838
// CHECK-32: (field name=t offset=12
3939
// CHECK-32: (struct size=4 alignment=4 stride=4 num_extra_inhabitants=0
40-
// CHECK-32: (field offset=0
40+
// CHECK-32: (field name=_value offset=0
4141
// CHECK-32: (builtin size=4 alignment=4 stride=4 num_extra_inhabitants=0)))))
4242

4343
reflect(any: obj)

validation-test/Reflection/reflect_Int64.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: rm -rf %t && mkdir -p %t
2-
// RUN: %target-build-swift -Xfrontend -enable-reflection-metadata -Xfrontend -enable-reflection-names -lswiftSwiftReflectionTest %s -o %t/reflect_Int64
2+
// RUN: %target-build-swift -lswiftSwiftReflectionTest %s -o %t/reflect_Int64
33
// RUN: %target-run %target-swift-reflection-test %t/reflect_Int64 2>&1 | FileCheck %s --check-prefix=CHECK-%target-ptrsize
44
// REQUIRES: objc_interop
55

@@ -25,7 +25,7 @@ reflect(object: obj)
2525
// CHECK-64: (class_instance size=24 alignment=16 stride=32 num_extra_inhabitants=0
2626
// CHECK-64: (field name=t offset=16
2727
// CHECK-64: (struct size=8 alignment=8 stride=8 num_extra_inhabitants=0
28-
// CHECK-64: (field offset=0
28+
// CHECK-64: (field name=_value offset=0
2929
// CHECK-64: (builtin size=8 alignment=8 stride=8 num_extra_inhabitants=0)))))
3030

3131
// CHECK-32: Reflecting an object.
@@ -37,7 +37,7 @@ reflect(object: obj)
3737
// CHECK-32: (class_instance size=24 alignment=16 stride=32 num_extra_inhabitants=0
3838
// CHECK-32: (field name=t offset=16
3939
// CHECK-32: (struct size=8 alignment=8 stride=8 num_extra_inhabitants=0
40-
// CHECK-32: (field offset=0
40+
// CHECK-32: (field name=_value offset=0
4141
// CHECK-32: (builtin size=8 alignment=8 stride=8 num_extra_inhabitants=0)))))
4242

4343
reflect(any: obj)

0 commit comments

Comments
 (0)