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