[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / clang / test / CodeGenCXX / alias-available-externally.cpp
blob473e93be0a755773de97e8c792d4bd1baea2e2eb
1 // RUN: %clang_cc1 -O1 -std=c++11 -emit-llvm -triple %itanium_abi_triple -disable-llvm-passes -o - %s | FileCheck %s
2 // Clang should not generate alias to available_externally definitions.
3 // Check that the destructor of Foo is defined.
4 // The destructors have different return type for different targets.
5 // CHECK: define linkonce_odr {{.*}} @_ZN3FooD2Ev
6 template <class CharT>
7 struct String {
8 String() {}
9 ~String();
12 template <class CharT>
13 inline __attribute__((visibility("hidden"), always_inline))
14 String<CharT>::~String() {}
16 extern template struct String<char>;
18 struct Foo : public String<char> { Foo() { String<char> s; } };
20 Foo f;