Skip to content

Commit c957330

Browse files
committed
Subsume two _CompilerPluginSupport-based tests into macro plugin tests
1 parent 5bd94d6 commit c957330

File tree

3 files changed

+4
-76
lines changed

3 files changed

+4
-76
lines changed

test/Macros/macro_external_exec.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ testFileID(a: 1, b: 2)
2020
2121
func testStringify(a: Int, b: Int) {
2222
let s = #stringify(a + b)
23+
print(s)
2324
2425
// CHECK-AST: macro_expansion_expr type='(Int, String)'{{.*}}name=stringify
2526
// CHECK-AST-NEXT: argument_list
@@ -35,3 +36,6 @@ func testStringify(a: Int, b: Int) {
3536
// CHECK-AST-NEXT: argument_list
3637
// CHECK-AST: tuple_expr type='(Double, String)' location=Macro expansion of #stringify
3738
}
39+
40+
// CHECK: (2, "a + b")
41+
testStringify(a: 1, b: 1)

test/Macros/macro_plugin.swift

Lines changed: 0 additions & 57 deletions
This file was deleted.

test/Macros/macro_plugin_exec.swift

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)