aboutsummaryrefslogtreecommitdiff
path: root/test/tsan/Darwin/objc-simple.mm
blob: a8fc355929628f95b4adc52e8037caef1025b2d2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Test that a simple Obj-C program runs and exits without any warnings.

// RUN: %clang_tsan %s -o %t -framework Foundation
// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %run %t 2>&1 | FileCheck %s

#import <Foundation/Foundation.h>

int main() {
  NSLog(@"Hello world");
}

// CHECK: Hello world
// CHECK-NOT: WARNING: ThreadSanitizer