Pirama Arumuga Nainar | 799172d | 2016-03-03 15:50:30 -0800 | [diff] [blame^] | 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 |