Skip to content

Commit 47820b1

Browse files
authored
[tests] Split up darwin-macatalyst test (#162358)
The way this test was constructed made it difficult to test downstream divergence correctly; instead split the error case.
1 parent 0d758de commit 47820b1

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// RUN: not %clang -target x86_64-apple-ios13.0-macabi -c %s -### 2>&1 | \
2+
// RUN: FileCheck --check-prefix=CHECK-ERROR %s
3+
// RUN: not %clang -target x86_64-apple-ios12.0-macabi -c %s -### 2>&1 | \
4+
// RUN: FileCheck --check-prefix=CHECK-ERROR %s
5+
6+
// CHECK-ERROR: error: invalid version number in '-target x86_64-apple-ios

clang/test/Driver/darwin-maccatalyst.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@
22
// RUN: FileCheck --check-prefix=CHECK-VERSION1 %s
33
// RUN: %clang -target x86_64-apple-ios-macabi -c %s -### 2>&1 | \
44
// RUN: FileCheck --check-prefix=CHECK-VERSION1 %s
5-
// RUN: not %clang -target x86_64-apple-ios13.0-macabi -c %s -### 2>&1 | \
6-
// RUN: FileCheck --check-prefix=CHECK-ERROR %s
7-
// RUN: not %clang -target x86_64-apple-ios12.0-macabi -c %s -### 2>&1 | \
8-
// RUN: FileCheck --check-prefix=CHECK-ERROR %s
95

106
// CHECK-VERSION1-NOT: error:
117
// CHECK-VERSION1: "x86_64-apple-ios13.1.0-macabi"
12-
// CHECK-ERROR: error: invalid version number in '-target x86_64-apple-ios

0 commit comments

Comments
 (0)