summaryrefslogtreecommitdiffstats
path: root/clang/test/PCH/cxx-templates.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2010-08-05 09:48:16 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2010-08-05 09:48:16 +0000
commit7f76d11dcc9196e1fc9d1308da9ed2330a6b06c2 (patch)
tree818086f97c698c96acd6f5713d8bbedd34b3b19c /clang/test/PCH/cxx-templates.cpp
parentee1afa30827e0805394cecc092beb083d1169283 (diff)
downloadbcm5719-llvm-7f76d11dcc9196e1fc9d1308da9ed2330a6b06c2.tar.gz
bcm5719-llvm-7f76d11dcc9196e1fc9d1308da9ed2330a6b06c2.zip
Store the pending implicit instantiations in the PCH and perform them at the end of the translation unit that
included the PCH, as God intended. llvm-svn: 110324
Diffstat (limited to 'clang/test/PCH/cxx-templates.cpp')
-rw-r--r--clang/test/PCH/cxx-templates.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/PCH/cxx-templates.cpp b/clang/test/PCH/cxx-templates.cpp
index 8e89b1da462..0749fc31e39 100644
--- a/clang/test/PCH/cxx-templates.cpp
+++ b/clang/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>;
OpenPOWER on IntegriCloud