1// RUN: %clang_cc1 -triple %itanium_abi_triple -emit-llvm %s -o - | FileCheck %s
2
3// Check that the following construct, which is similar to one which occurs
4// in Firefox, is folded correctly.
5struct A { char x; };
6struct B { char y; };
7struct C : A,B {};
8unsigned char x = ((char*)(B*)(C*)0x1000) - (char*)0x1000;
9
10// CHECK: @x = global i8 1
11