test/CodeGenCXX/dllexport.cpp: we already correctly emit b() even when

it's not used, because CodeGenModule::EmitGlobal consults
ASTContext::DeclMustBeEmitted via CodeGenModule::MayDeferGeneration.

llvm-svn: 208936
This commit is contained in:
Hans Wennborg 2014-05-16 00:09:31 +00:00
parent d20c970aac
commit 4e43fef3e5
1 changed files with 1 additions and 2 deletions

View File

@ -18,8 +18,7 @@ struct S {
};
void user() {
// FIXME: dllexported functions must be emitted even if they're not referenced in this TU.
a();
b();
// FIXME: dllexported methods must be emitted even if they're not referenced in this TU.
&S::a;
}