[compiler-rt] r223533 - Recommit of r223513 and r223514.
Alexander Potapenko
glider at google.com
Mon Dec 8 02:05:11 PST 2014
OOC, what was the reason for revert?
On Sat, Dec 6, 2014 at 1:19 AM, Kuba Brecka <kuba.brecka at gmail.com> wrote:
> Author: kuba.brecka
> Date: Fri Dec 5 16:19:35 2014
> New Revision: 223533
>
> URL: http://llvm.org/viewvc/llvm-project?rev=223533&view=rev
> Log:
> Recommit of r223513 and r223514.
>
> Reviewed at http://reviews.llvm.org/D6488
>
>
> Added:
> compiler-rt/trunk/test/asan/TestCases/Darwin/objc-odr.mm
>
> Added: compiler-rt/trunk/test/asan/TestCases/Darwin/objc-odr.mm
> URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Darwin/objc-odr.mm?rev=223533&view=auto
> ==============================================================================
> --- compiler-rt/trunk/test/asan/TestCases/Darwin/objc-odr.mm (added)
> +++ compiler-rt/trunk/test/asan/TestCases/Darwin/objc-odr.mm Fri Dec 5 16:19:35 2014
> @@ -0,0 +1,23 @@
> +// 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
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
--
Alexander Potapenko
Software Engineer
Google Moscow
More information about the llvm-commits
mailing list