Fix-up for r290119 - don't check global size, it might not be available when using...
authorKuba Mracek <mracek@apple.com>
Mon, 19 Dec 2016 18:06:49 +0000 (18:06 +0000)
committerKuba Mracek <mracek@apple.com>
Mon, 19 Dec 2016 18:06:49 +0000 (18:06 +0000)
llvm-svn: 290123

compiler-rt/test/tsan/debug_locate.cc

index 6f88b6f..01b0960 100644 (file)
@@ -32,7 +32,7 @@ int main() {
   type = __tsan_locate_address(&global_var, name, 128, &start, &size);
   fprintf(stderr, "type: %s, name = %s, start = %p, size = %zu\n", type, name,
           start, size);
-  // CHECK: type: global, name = global_var, start = [[GLOBAL_VAR]], size = 8
+  // CHECK: type: global, name = global_var, start = [[GLOBAL_VAR]], size = {{8|0}}
 
   type = __tsan_locate_address(heap_var, name, 128, &start, &size);
   fprintf(stderr, "type: %s, start = %p, size = %zu\n", type, start, size);