Rafael Espindola | 123ce97 | 2018-01-24 18:58:32 +0000 | [diff] [blame] | 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 | |
Reid Kleckner | fb93154 | 2018-03-16 20:36:49 +0000 | [diff] [blame] | 5 | // CHECK: declare dllimport void @"?bar@foo@@QEAAXXZ"(%struct.foo*) |
Rafael Espindola | 123ce97 | 2018-01-24 18:58:32 +0000 | [diff] [blame] | 6 | |
| 7 | struct __attribute__((dllimport)) foo { |
| 8 | void bar() {} |
| 9 | }; |
| 10 | void zed(foo *p) { p->bar(); } |