1 // RUN: %clang_cc1 -triple x86_64-pc-windows-msvc -emit-llvm -fvisibility-inlines-hidden -o - %s | FileCheck %s 2 3 // We used to declare this hidden dllimport, which is contradictory. 4 5 // CHECK: declare dllimport void @"?bar@foo@@QEAAXXZ"(%struct.foo* {{[^,]*}}) 6 7 struct __attribute__((dllimport)) foo { barfoo8 void bar() {} 9 }; zed(foo * p)10void zed(foo *p) { p->bar(); } 11