diff options
-rw-r--r-- | compiler-rt/test/asan/TestCases/Darwin/objc-odr.mm | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/compiler-rt/test/asan/TestCases/Darwin/objc-odr.mm b/compiler-rt/test/asan/TestCases/Darwin/objc-odr.mm deleted file mode 100644 index 72bc39c80dd..00000000000 --- a/compiler-rt/test/asan/TestCases/Darwin/objc-odr.mm +++ /dev/null @@ -1,23 +0,0 @@ -// Regression test for -// https://code.google.com/p/address-sanitizer/issues/detail?id=360. - -// RUN: %clang_asan %s -o %t -framework Foundation -// RUN: %run %t 2>&1 | FileCheck %s - -#import <Foundation/Foundation.h> - -void f() { - int y = 7; - dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_BACKGROUND, 0), ^{ - dispatch_sync(dispatch_get_main_queue(), ^{ - printf("num = %d\n", y); - }); - }); -} - -int main() { - NSLog(@"Hello world"); -} - -// CHECK-NOT: AddressSanitizer: odr-violation -// CHECK: Hello world |