1// Test that a simple Obj-C program runs and exits without any warnings. 2 3// RUN: %clang_tsan %s -o %t -framework Foundation 4// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %run %t 2>&1 | FileCheck %s 5 6#import <Foundation/Foundation.h> 7 8int main() { 9 NSLog(@"Hello world"); 10} 11 12// CHECK: Hello world 13// CHECK-NOT: WARNING: ThreadSanitizer 14