Vedant Kumar | 29477dc | 2017-12-08 02:47:58 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 %s -emit-llvm -fsanitize=address -fblocks -o - | FileCheck %s |
Peter Collingbourne | 915df99 | 2015-05-15 18:33:32 +0000 | [diff] [blame] | 2 | |
| 3 | @interface I0 @end |
| 4 | @implementation I0 |
| 5 | // CHECK-NOT: sanitize_address |
| 6 | - (void) im0: (int) a0 __attribute__((no_sanitize("address"))) { |
Vedant Kumar | 29477dc | 2017-12-08 02:47:58 +0000 | [diff] [blame] | 7 | int (^blockName)() = ^int() { return 0; }; |
Peter Collingbourne | 915df99 | 2015-05-15 18:33:32 +0000 | [diff] [blame] | 8 | } |
| 9 | @end |