mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-27 03:16:07 +00:00

The tests that failed on a windows host have been fixed. Original message: Start setting dso_local for COFF. With this there are still some GVs where we don't set dso_local because setGVProperties is never called. I intend to fix that in followup commits. This is just the bare minimum to teach shouldAssumeDSOLocal what it should do for COFF. llvm-svn: 325940
11 lines
361 B
C++
11 lines
361 B
C++
// RUN: %clang_cc1 -triple %itanium_abi_triple -emit-llvm %s -o - | FileCheck %s
|
|
|
|
// Check that the following construct, which is similar to one which occurs
|
|
// in Firefox, is folded correctly.
|
|
struct A { char x; };
|
|
struct B { char y; };
|
|
struct C : A,B {};
|
|
unsigned char x = ((char*)(B*)(C*)0x1000) - (char*)0x1000;
|
|
|
|
// CHECK: @x = {{(dso_local )?}}global i8 1
|