brintos

brintos / llvm-project-archived public Read only

0
0
Text · 398 B · ebb7517 Raw
17 lines · plain
1// RUN: %clang_cc1 -x objective-c -emit-llvm -triple x86_64-apple-macosx10.10.0 -Wno-objc-root-class -fsanitize=array-bounds %s -o - | FileCheck %s2 3@interface FlexibleArray1 {4@public5  char chars[0];6}7@end8@implementation FlexibleArray19@end10 11// CHECK-LABEL: test_FlexibleArray112char test_FlexibleArray1(FlexibleArray1 *FA1) {13  // CHECK-NOT: !nosanitize14  return FA1->chars[1];15  // CHECK: }16}17