Add a dllimport test.

Thanks to rnk for the suggestion.

llvm-svn: 328800
This commit is contained in:
Rafael Espindola 2018-03-29 16:35:52 +00:00
parent ea40f40e1b
commit 7e9b87648b
1 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,7 @@
// RUN: %clang_cc1 -triple x86_64-windows-msvc -fms-extensions -emit-llvm -o - %s | FileCheck %s
__declspec(dllimport) void f();
void g() { f(); } // use it
// CHECK: define dso_local dllexport void @f
void f() { }