2018-01-25 02:58:32 +08:00
|
|
|
// 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.
|
|
|
|
|
2018-03-17 04:36:49 +08:00
|
|
|
// CHECK: declare dllimport void @"?bar@foo@@QEAAXXZ"(%struct.foo*)
|
2018-01-25 02:58:32 +08:00
|
|
|
|
|
|
|
struct __attribute__((dllimport)) foo {
|
|
|
|
void bar() {}
|
|
|
|
};
|
|
|
|
void zed(foo *p) { p->bar(); }
|