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