// RUN: %clang -fstrict-flex-arrays=2 -target x86_64-apple-darwin -S -emit-llvm %s -o - 2>&1 | FileCheck --check-prefixes=CHECK,CHECK-STRICT-2 %s
// RUN: %clang -fstrict-flex-arrays=1 -target x86_64-apple-darwin -S -emit-llvm %s -o - 2>&1 | FileCheck --check-prefixes=CHECK,CHECK-STRICT-1 %s
// RUN: %clang -fstrict-flex-arrays=0 -target x86_64-apple-darwin -S -emit-llvm %s -o - 2>&1 | FileCheck --check-prefixes=CHECK,CHECK-STRICT-0 %s
typedef struct foo_t;
typedef struct foo0_t;
typedef struct foo1_t;
typedef struct foo2_t;
// CHECK-LABEL: @bar
unsigned
// CHECK-LABEL: @bar0
unsigned
// CHECK-LABEL: @bar1
unsigned
// CHECK-LABEL: @bar2
unsigned
// Also checks for non-trailing flex-array like members
typedef struct foofoo0_t;
typedef struct foofoo1_t;
typedef struct foofoo2_t;
// CHECK-LABEL: @babar0
unsigned
// CHECK-LABEL: @babar1
unsigned
// CHECK-LABEL: @babar2
unsigned