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: %run %t 2>&1 5 6 #import <Foundation/Foundation.h> 7 8 int main() { 9 NSLog(@"Hello world"); 10 } 11 12 // CHECK: Hello world 13 // CHECK-NOT: WARNING: ThreadSanitizer 14