mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-25 12:56:06 +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
14 lines
416 B
C++
14 lines
416 B
C++
// RUN: %clang_cc1 -emit-llvm -triple i386-pc-mingw32 %s -o - | FileCheck --check-prefix=MINGW %s
|
|
// RUN: %clang_cc1 -emit-llvm -triple i386-pc-cygwin %s -o - | FileCheck --check-prefix=CYGWIN %s
|
|
|
|
namespace test1 {
|
|
struct foo {
|
|
// MINGW: declare dso_local x86_thiscallcc void @_ZN5test13foo1fEv
|
|
// CYGWIN: declare dso_local void @_ZN5test13foo1fEv
|
|
void f();
|
|
};
|
|
void g(foo *x) {
|
|
x->f();
|
|
}
|
|
}
|