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