aboutsummaryrefslogtreecommitdiff
path: root/test/PCH/cxx-templates.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/PCH/cxx-templates.cpp')
-rw-r--r--test/PCH/cxx-templates.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/PCH/cxx-templates.cpp b/test/PCH/cxx-templates.cpp
index 8e89b1da46..0749fc31e3 100644
--- a/test/PCH/cxx-templates.cpp
+++ b/test/PCH/cxx-templates.cpp
@@ -7,6 +7,7 @@
// RUN: %clang_cc1 -include-pch %t -verify %s -ast-dump 1>/dev/null
// RUN: %clang_cc1 -include-pch %t %s -emit-llvm -o - | FileCheck %s
+// CHECK: define weak_odr void @_ZN2S4IiE1mEv
// CHECK: define linkonce_odr void @_ZN2S3IiE1mEv
struct A {
@@ -30,3 +31,5 @@ void test() {
S3<int> s3;
s3.m();
}
+
+template struct S4<int>;