2014-01-15 03:35:09 +08:00
|
|
|
// RUN: %clang_cc1 -std=c++11 -emit-llvm %s -o - -fms-extensions -fdelayed-template-parsing -triple=i386-pc-win32 | FileCheck %s
|
|
|
|
// RUN: %clang_cc1 -std=c++11 -emit-llvm %s -o - -fms-extensions -fdelayed-template-parsing -triple=x86_64-pc-win32 | FileCheck -check-prefix X64 %s
|
2013-09-14 13:46:42 +08:00
|
|
|
|
|
|
|
namespace ClassScopeSpecialization {
|
|
|
|
struct Type {
|
|
|
|
template <int i>
|
|
|
|
void Foo() {}
|
|
|
|
template <>
|
|
|
|
void Foo<0>() {}
|
|
|
|
};
|
|
|
|
|
|
|
|
void call() {
|
|
|
|
Type T;
|
2018-03-17 04:36:49 +08:00
|
|
|
// CHECK: call {{.*}} @"??$Foo@$0A@@Type@ClassScopeSpecialization@@QAEXXZ"
|
|
|
|
// X64: call {{.*}} @"??$Foo@$0A@@Type@ClassScopeSpecialization@@QEAAXXZ"
|
2013-09-14 13:46:42 +08:00
|
|
|
T.Foo<0>();
|
|
|
|
}
|
|
|
|
}
|