<commit_before>// RUN: %empty-directory(%t)
// RUN: %target-build-swift -Xfrontend -enable-experimental-concurrency -parse-stdlib -parse-as-library -lswiftSwiftReflectionTest %s -o %t/reflect_task
// RUN: %target-codesign %t/reflect_task

// RUN: %target-run %target-swift-reflection-test %t/reflect_task | %FileCheck %s --dump-input=fail

// REQUIRES: reflection_test_support
// REQUIRES: executable_test
// REQUIRES: concurrency
// UNSUPPORTED: use_os_stdlib

import Swift
import _Concurrency

import SwiftReflectionTest

@_silgen_name("swift_task_getCurrent")
func _getCurrentAsyncTask() -> UInt

func add(_ a: UInt, _ b: UInt) async -> UInt {
  if b == 0 {
    reflect(asyncTask: _getCurrentAsyncTask())
    // CHECK: Reflecting an async task.
    // CHECK: Async task {{0x[0-9a-fA-F]*}}

    // The actual number of chunks we'll get depends on internal implementation
    // details that we don't want this test to depend on. We'll just make sure
    // we get at least two, and ignore the details.
    // CHECK:   Allocation block {{0x[0-9a-fA-F]*}}
    // CHECK:     Chunk at {{0x[0-9a-fA-F]*}} length {{[0-9]*}} kind {{[0-9]*}}
    // CHECK:   Allocation block {{0x[0-9a-fA-F]*}}
    // CHECK:     Chunk at {{0x[0-9a-fA-F]*}} length {{[0-9]*}} kind {{[0-9]*}}
    return a
  } else {
    return await add(a, b - 1) + 1<commit_msg>[Test] Mark reflect_task.swift as unsupported with the back deployment runtime.<commit_after>// RUN: %empty-directory(%t)
// RUN: %target-build-swift -Xfrontend -enable-experimental-concurrency -parse-stdlib -parse-as-library -lswiftSwiftReflectionTest %s -o %t/reflect_task
// RUN: %target-codesign %t/reflect_task

// RUN: %target-run %target-swift-reflection-test %t/reflect_task | %FileCheck %s --dump-input=fail

// REQUIRES: reflection_test_support
// REQUIRES: executable_test
// REQUIRES: concurrency
// UNSUPPORTED: use_os_stdlib
// UNSUPPORTED: back_deployment_runtime

import Swift
import _Concurrency

import SwiftReflectionTest

@_silgen_name("swift_task_getCurrent")
func _getCurrentAsyncTask() -> UInt

func add(_ a: UInt, _ b: UInt) async -> UInt {
  if b == 0 {
    reflect(asyncTask: _getCurrentAsyncTask())
    // CHECK: Reflecting an async task.
    // CHECK: Async task {{0x[0-9a-fA-F]*}}

    // The actual number of chunks we'll get depends on internal implementation
    // details that we don't want this test to depend on. We'll just make sure
    // we get at least two, and ignore the details.
    // CHECK:   Allocation block {{0x[0-9a-fA-F]*}}
    // CHECK:     Chunk at {{0x[0-9a-fA-F]*}} length {{[0-9]*}} kind {{[0-9]*}}
    // CHECK:   Allocation block {{0x[0-9a-fA-F]*}}
    // CHECK:     Chunk at {{0x[0-9a-fA-F]*}} length {{[0-9]*}} kind {{[0-9]*}}
    return a
  } else {
    return await add(a, b - 1) + 1
{'fraction_non_alphanumeric': 0.15564342199856218, 'fraction_numerical': 0.018691588785046728, 'mean_word_length': 3.355242566510172, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3098979', 'n_tokens_mistral': 1026, 'n_tokens_neox': 980, 'n_words': 270}