Files
swift-mirror/test/SIL/Parser/test_instructions.sil
Nate Chandler ab35362056 [SIL] Added new test_specification instruction.
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.
2022-10-11 17:15:13 -07:00

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 : $()
}