Files
clang-p2996/clang/test/CodeGenCXX/hidden-dllimport.cpp
Rafael Espindola 123ce97fac Don't create hidden dllimport global values.
Hidden visibility is almost the opposite of dllimport. We were
producing them before (dllimport wins in the existing llvm
implementation), but now the llvm verifier produces an error.

llvm-svn: 323361
2018-01-24 18:58:32 +00:00

11 lines
345 B
C++

// RUN: %clang_cc1 -triple x86_64-pc-windows-msvc -emit-llvm -fvisibility-inlines-hidden -o - %s | FileCheck %s
// We used to declare this hidden dllimport, which is contradictory.
// CHECK: declare dllimport void @"\01?bar@foo@@QEAAXXZ"(%struct.foo*)
struct __attribute__((dllimport)) foo {
void bar() {}
};
void zed(foo *p) { p->bar(); }