summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/alias-available-externally.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGenCXX/alias-available-externally.cpp')
-rw-r--r--clang/test/CodeGenCXX/alias-available-externally.cpp19
1 files changed, 0 insertions, 19 deletions
diff --git a/clang/test/CodeGenCXX/alias-available-externally.cpp b/clang/test/CodeGenCXX/alias-available-externally.cpp
deleted file mode 100644
index 264af558377..00000000000
--- a/clang/test/CodeGenCXX/alias-available-externally.cpp
+++ /dev/null
@@ -1,19 +0,0 @@
-// RUN: %clang_cc1 -O1 -std=c++11 -emit-llvm -disable-llvm-passes -o - %s | FileCheck %s
-// Clang should not generate alias to available_externally definitions.
-// Check that the destructor of Foo is defined.
-// CHECK: define linkonce_odr void @_ZN3FooD2Ev
-template <class CharT>
-struct String {
- String() {}
- ~String();
-};
-
-template <class CharT>
-inline __attribute__((visibility("hidden"), always_inline))
-String<CharT>::~String() {}
-
-extern template struct String<char>;
-
-struct Foo : public String<char> { Foo() { String<char> s; } };
-
-Foo f;
OpenPOWER on IntegriCloud