summaryrefslogtreecommitdiff
path: root/test/InterfaceStubs/template-namespace-function.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/InterfaceStubs/template-namespace-function.cpp')
-rw-r--r--test/InterfaceStubs/template-namespace-function.cpp31
1 files changed, 0 insertions, 31 deletions
diff --git a/test/InterfaceStubs/template-namespace-function.cpp b/test/InterfaceStubs/template-namespace-function.cpp
deleted file mode 100644
index 879318122b..0000000000
--- a/test/InterfaceStubs/template-namespace-function.cpp
+++ /dev/null
@@ -1,31 +0,0 @@
-// RUN: %clang -target x86_64-unknown-linux-gnu -o - -emit-interface-stubs \
-// RUN: -interface-stub-version=experimental-tapi-elf-v1 %s | \
-// RUN: FileCheck %s
-
-// RUN: %clang -target x86_64-unknown-linux-gnu -o - -c %s | llvm-nm - 2>&1 | \
-// RUN: FileCheck -check-prefix=CHECK-SYMBOLS %s
-
-// CHECK: Symbols:
-// CHECK-DAG: _ZN3qux3barEii: { Type: Func }
-// CHECK-DAG: _ZN3baz3addIiEET_S1_S1_: { Type: Func }
-// CHECK-DAG: _Z4fbarff: { Type: Func }
-// CHECK-DAG: _ZN3baz3addIfEET_S1_S1_: { Type: Func }
-
-// Same symbols just different order.
-// CHECK-SYMBOLS-DAG: _Z4fbarff
-// CHECK-SYMBOLS-DAG: _ZN3baz3addIfEET_S1_S1_
-// CHECK-SYMBOLS-DAG: _ZN3baz3addIiEET_S1_S1_
-// CHECK-SYMBOLS-DAG: _ZN3qux3barEii
-
-namespace baz {
-template <typename T>
-T add(T a, T b) {
- return a + b;
-}
-} // namespace baz
-
-namespace qux {
-int bar(int a, int b) { return baz::add<int>(a, b); }
-} // namespace qux
-
-float fbar(float a, float b) { return baz::add<float>(a, b); }