2014-01-15 03:35:09 +08:00
|
|
|
// RUN: %clang_cc1 -triple %itanium_abi_triple -emit-llvm %s -o - | FileCheck %s
|
2009-12-27 13:43:15 +08:00
|
|
|
|
|
|
|
// Check that the following construct, which is similar to one which occurs
|
2011-11-18 06:56:20 +08:00
|
|
|
// in Firefox, is folded correctly.
|
2009-12-27 13:43:15 +08:00
|
|
|
struct A { char x; };
|
|
|
|
struct B { char y; };
|
|
|
|
struct C : A,B {};
|
|
|
|
unsigned char x = ((char*)(B*)(C*)0x1000) - (char*)0x1000;
|
|
|
|
|
2018-02-24 03:30:48 +08:00
|
|
|
// CHECK: @x = {{(dso_local )?}}global i8 1
|