Skip to content

Instantly share code, notes, and snippets.

View kateinoigakukun's full-sized avatar

Yuta Saito kateinoigakukun

View GitHub Profile
FAIL: Swift(wasi-wasm32) :: stdlib/FlatMapDeprecation.swift (48 of 251)
******************** TEST 'Swift(wasi-wasm32) :: stdlib/FlatMapDeprecation.swift' FAILED ********************
Script:
--
: 'RUN: at line 1'; '/Users/kateinoigakukun/projects/swiftwasm-source/build/Ninja-DebugAssert/swift-macosx-x86_64/bin/swift' -frontend -module-cache-path '/Users/kateinoigakukun/projects/swiftwasm-source/build/Ninja-DebugAssert/swift-macosx-x86_64/swift-test-results/wasm32-unknown-wasi/clang-module-cache' -disable-objc-attr-requires-foundation-module -swift-version 4 -ignore-module-source-info -swift-version 4 -typecheck -verify /Users/kateinoigakukun/projects/swiftwasm-source/swift/test/stdlib/FlatMapDeprecation.swift
--
Exit Code: 1
Command Output (stderr):
--
This file has been truncated, but you can view the full file.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Xunit Viewer</title>
<meta name="title" content="Xunit Viewer">
<meta content="https://github.io/lukejpreston/xunit-view/logo.png" property="og:image">
<link href="https://github.io/lukejpreston/xunit-view/favicon.ico" rel="shortcut icon">
<meta name="description" content="1467 Skipped, 3385 Passed, 214 Failure"">
This file has been truncated, but you can view the full file.
<?xml version="1.0" encoding="UTF-8" ?>
<testsuites>
<testsuite name="Swift(wasi-wasm32)" tests="4981" failures="311" skipped="1556">
<testcase classname="Swift(wasi-wasm32).SymbolGraph/Module" name="Module.swift" time="0.14"/>
<testcase classname="Swift(wasi-wasm32).stmt" name="statements.swift" time="0.31"/>
<testcase classname="Swift(wasi-wasm32).refactoring/RefactoringKind" name="convert_to_switch_statement.swift" time="0.00">
<skipped message="Skipping because of configuration." />
</testcase>
<testcase classname="Swift(wasi-wasm32).refactoring/RefactoringKind" name="basic.swift" time="0.00">
diff --git a/XcodeGenWithPods.xcodeproj/project.pbxproj b/XcodeGenWithPods.xcodeproj/project.pbxproj
index dfcdf54..2ccc1d7 100644
--- a/XcodeGenWithPods.xcodeproj/project.pbxproj
+++ b/XcodeGenWithPods.xcodeproj/project.pbxproj
@@ -7,6 +7,7 @@
objects = {
/* Begin PBXBuildFile section */
+ 9B4FB0EE55D0AAB7C3934B9C /* Pods_XcodeGenWithPods.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 23E159711564C07B8B4AABE5 /* Pods_XcodeGenWithPods.framework */; };
F2D1B3F323EBF5EC00BC0FE4 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = F2D1B3F223EBF5EC00BC0FE4 /* AppDelegate.swift */; };
#include <dlfcn.h>
#include <stdio.h>
int main(void) {
void *handle = dlopen("/home/katei/.swiftenv/versions/5.1.3-RELEASE/usr/lib/swift/linux/libswiftCore.so", RTLD_LAZY);
char *start = dlsym(handle, "__start_swift5_protocols");
printf("start = %p", start);
return 0;
}
public protocol Identifiable {
associatedtype RawIdentifier: Codable = String
var id: Identifier<Self> { get }
}
public struct Identifier<Value: Identifiable>: RawRepresentable, Codable {
public typealias RawValue = Value.RawIdentifier
public let rawValue: RawValue
%MyType = type { i32, i64 }
@a = constant %MyType { i32 7, i64 0 }, section "__DATA,__const"
@b = alias %MyType, getelementptr (
%MyType, %MyType* getelementptr inbounds (%MyType, %MyType* @a, i32 0), i32 -1
)
@formatString = private constant [4 x i8] c"%p \0a"
define i32 @main(i32, i8**) #0 {
entry:
import UIKit
class CustomTabBar: UITabBar {}
class ContentViewController: UIViewController {
convenience init(_ name: String, _ backgroundColor: UIColor) {
self.init(nibName: nil, bundle: nil)
view.backgroundColor = backgroundColor
title = name
}
# Workaround: Copy OTHER_LDFLAGS to PODS_OTHER_LDFLAGS in xcconfig to inherit pod configs
class Pod::Target::BuildSettings
_PLURAL_SETTINGS = PLURAL_SETTINGS + ["PODS_OTHER_LDFLAGS"]
remove_const :PLURAL_SETTINGS
PLURAL_SETTINGS = _PLURAL_SETTINGS
define_build_settings_method :pods_other_ldflags, :build_setting => true, :memoized => true do
other_ldflags
end
end
target=$1
for index in $(seq $(echo $target|wc -c))
do
swift demangle ${target:0:$index}
done