Home | History | Annotate | Download | only in CodeGen
      1 // RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
      2 // PR2603
      3 
      4 struct A {
      5   char num_fields;
      6 };
      7 
      8 struct B {
      9   char a, b[1];
     10 };
     11 
     12 const struct A Foo = {
     13   // CHECK: i8 1
     14   (char *)(&( (struct B *)(16) )->b[0]) - (char *)(16)
     15 };
     16