diff options
Diffstat (limited to 'test/tsan/Darwin/objc-simple.mm')
-rw-r--r-- | test/tsan/Darwin/objc-simple.mm | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/tsan/Darwin/objc-simple.mm b/test/tsan/Darwin/objc-simple.mm new file mode 100644 index 0000000000000..a4bf1f1beaa00 --- /dev/null +++ b/test/tsan/Darwin/objc-simple.mm @@ -0,0 +1,13 @@ +// Test that a simple Obj-C program runs and exits without any warnings. + +// RUN: %clang_tsan %s -o %t -framework Foundation +// RUN: %run %t 2>&1 + +#import <Foundation/Foundation.h> + +int main() { + NSLog(@"Hello world"); +} + +// CHECK: Hello world +// CHECK-NOT: WARNING: ThreadSanitizer |