From 81fca31ef4163973c6130b30bc1e75d6f48b20f7 Mon Sep 17 00:00:00 2001 From: Mark Lacey Date: Thu, 23 Feb 2017 12:39:32 -0800 Subject: [PATCH] Add a typecheck perf test for inferring array-of-tuples. --- .../type_checker_perf_failing/array_of_tuples.swift.gyb | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 validation-test/Sema/type_checker_perf_failing/array_of_tuples.swift.gyb diff --git a/validation-test/Sema/type_checker_perf_failing/array_of_tuples.swift.gyb b/validation-test/Sema/type_checker_perf_failing/array_of_tuples.swift.gyb new file mode 100644 index 0000000000000..8c693d9b22eb0 --- /dev/null +++ b/validation-test/Sema/type_checker_perf_failing/array_of_tuples.swift.gyb @@ -0,0 +1,9 @@ +// RUN: not %scale-test -O --begin 1 --end 3 --step 1 --select incrementScopeCounter %s +// REQUIRES: OS=macosx +// REQUIRES: asserts + +let a = [ +%for i in range(0, N): + (1, 1), +%end +]