[clang][deps] Move tests to the Clang subdirectory

This commit is contained in:
Jan Svoboda 2021-09-10 21:36:49 +02:00
parent 188375f478
commit 285ec53730
5 changed files with 4 additions and 3 deletions

View File

@ -1,7 +1,7 @@
[
{
"directory": "DIR",
"command": "clang -c DIR/tu.c -fmodules -target i386-apple-ios14.0-simulator -o DIR/tu.o",
"command": "clang -c DIR/tu.c -fmodules -target i386-apple-ios14.0-simulator -Wno-error=invalid-ios-deployment-target -o DIR/tu.o",
"file": "DIR/tu.c"
}
]

View File

@ -6,8 +6,9 @@
// RUN: clang-scan-deps -compilation-database %t/cdb.json -format experimental-full 2>&1 >> %t/result.json
// RUN: cat %t/result.json | sed 's:\\\\\?:/:g' | FileCheck %s
// Check that the scanner injects '-Wno-error' option and invalid command-line
// arguments like '-target i386-apple-ios14.0-simulator' do not result in error.
// Check that the '-Wno-error=invalid-ios-deployment-target' option is being
// respected and invalid arguments like '-target i386-apple-ios14.0-simulator'
// do not result in an error.
// CHECK-NOT: error:
// CHECK: -[[PREFIX:.*]]