repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
[docs] Fix build-docs.sh
[llvm-project.git]
/
compiler-rt
/
test
/
tsan
/
Darwin
/
objc-simple.mm
blob
b62d0eb8702d1eced72e4c23ac8ab6a639cfda22
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 | FileCheck %s
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