You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
227 B

// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
// PR2603
struct A {
char num_fields;
};
struct B {
char a, b[1];
};
const struct A Foo = {
// CHECK: i8 1
(char *)(&( (struct B *)(16) )->b[0]) - (char *)(16)
};