Fix this test and don't run it in ASan bootstrap

llvm-svn: 200291
This commit is contained in:
Alexey Samsonov 2014-01-28 06:59:32 +00:00
parent 40e7522ebd
commit b80effdfe1
2 changed files with 4 additions and 2 deletions

View File

@ -4,13 +4,13 @@
// Check that we don't get stack overflow trying to annotate an extremely deep AST.
// AddressSanitizer increases stack usage.
// XFAIL: asan
// REQUIRES: not_asan
struct S {
S &operator()();
};
// CHECK: Identifier: "foo" [11:6 - 11:9] FunctionDecl=foo:11:6 (Definition)
// CHECK: Identifier: "foo" {{\[}}[[@LINE+1]]:6 - [[@LINE+1]]:9] FunctionDecl=foo:[[@LINE+1]]:6 (Definition)
void foo() {
S s;
s()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()

View File

@ -371,6 +371,8 @@ if lit.util.which('xmllint'):
# Sanitizers.
if config.llvm_use_sanitizer == "Address":
config.available_features.add("asan")
else:
config.available_features.add("not_asan")
if (config.llvm_use_sanitizer == "Memory" or
config.llvm_use_sanitizer == "MemoryWithOrigins"):
config.available_features.add("msan")