Skip to content

Commit 406357f

Browse files
committed
Check for error messages
1 parent 12f3bbc commit 406357f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

clang/test/Modules/sdk-settings-json-dep.m

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,8 @@
4646
// RUN: sleep 1
4747
// RUN: cp %t/AppleTVOS15.0.sdk/SDKSettings-new.json %t/AppleTVOS15.0.sdk/SDKSettings.json
4848
// RUN: not %clang -target x86_64-apple-tvos13.1 -isysroot %t/AppleTVOS15.0.sdk \
49-
// RUN: -fsyntax-only %t/tu.m -o %t/tu.o -fmodules -Xclang -fdisable-module-hash -fmodules-cache-path=%t/cache
49+
// RUN: -fsyntax-only %t/tu.m -o %t/tu.o -fmodules -Xclang -fdisable-module-hash -fmodules-cache-path=%t/cache 2>&1 \
50+
// RUN: | FileCheck %s
51+
// CHECK: M.h:2:15: error: 'foo' is unavailable: obsoleted in tvOS 13.1
52+
// CHECK: M.h:1:6: note: 'foo' has been explicitly marked unavailable here
53+
// CHECK: tu.m:1:10: fatal error: could not build module 'M'

0 commit comments

Comments
 (0)