Skip to content

Commit 8fcb73d

Browse files
authored
Merge pull request #61702 from DougGregor/builtin-macros-tests-requires-asserts
Enable this test only when assertions are available.
2 parents c7b3d60 + c1e8a0c commit 8fcb73d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/Macros/builtin_macros.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// RUN: %target-swift-frontend -enable-experimental-feature BuiltinMacros -dump-ast %s -module-name MacrosTest 2>&1 | %FileCheck %s
22
// REQUIRES: OS=macosx
3+
// REQUIRES: asserts
34

45
// CHECK: macro_expansion_expr implicit type='String'
56
// CHECK-NEXT: magic_identifier_literal_expr{{.*}}kind=#function
@@ -14,7 +15,7 @@ func f(a: Int, b: Int) {
1415

1516
// CHECK: macro_expansion_expr implicit type='Int'
1617
// CHECK-NEXT: magic_identifier_literal_expr{{.*}}kind=#line
17-
// CHECK-NEXT: integer_literal_expr{{.*}}Macro expansion of #line in{{.*}}value=10
18+
// CHECK-NEXT: integer_literal_expr{{.*}}Macro expansion of #line in{{.*}}value=11
1819

1920
// CHECK: macro_expansion_expr implicit type='Int'
2021
// CHECK-NEXT: magic_identifier_literal_expr{{.*}}kind=#column

0 commit comments

Comments
 (0)