mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
The new instruction exists only to be used in tests. The idea is to specify tests that ought to be run "in the context" of the containing function.
20 lines
630 B
Plaintext
20 lines
630 B
Plaintext
// RUN: %target-sil-opt %s | %target-sil-opt | %FileCheck %s
|
|
|
|
sil_stage canonical
|
|
|
|
import Builtin
|
|
|
|
// Test round-tripping the instruction through the SIL parser.
|
|
//
|
|
// In particular, this doesn't test parsing the components that make up the test
|
|
// specification.
|
|
// CHECK-LABEL: sil [ossa] @for_test_specification : {{.*}} {
|
|
// CHECK: test_specification "try-running-it foo bar 18 false baz"
|
|
// CHECK-LABEL: } // end sil function 'for_test_specification'
|
|
sil [ossa] @for_test_specification : $@convention(thin) () -> () {
|
|
entry:
|
|
test_specification "try-running-it foo bar 18 false baz"
|
|
%4 = tuple()
|
|
return %4 : $()
|
|
}
|