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. 5 struct A { char x; }; 6 struct B { char y; }; 7 struct C : A,B {}; 8 unsigned char x = ((char*)(B*)(C*)0x1000) - (char*)0x1000; 9 10 // CHECK: @x = {{(dso_local )?}}global i8 1 11