 
     // swiftlint:disable:next function_body_length
     func testSwiftDeclarationAttributeKind() {
-        var expected: [SwiftDeclarationAttributeKind] = [
+        #if swift(>=4.1)
+        let expected: [SwiftDeclarationAttributeKind] = [
             .ibaction,
             .iboutlet,
             .ibdesignable,

            .setterOpen,
            .implicitlyUnwrappedOptional,
            .optimize,
            .consuming,
            .autoclosure,
            .noescape
        ]

        let actual = sourcekitStrings(startingWith: "source.decl.attribute.")

            print("the following strings were added: \(actual.subtracting(expectedStrings))")
            print("the following strings were removed: \(expectedStrings.subtracting(actual))")
        }
        #endif
    }

    func testLibraryWrappersAreUpToDate() {
