summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/delayed-template-parsing.cpp
blob: c5f44864154403b8563fa073fd5a09a557f409ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// 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

namespace ClassScopeSpecialization {
  struct Type {
    template <int i>
    void Foo() {}
    template <>
    void Foo<0>() {}
  };

  void call() {
    Type T;
// CHECK: call {{.*}} @"\01??$Foo@$0A@@Type@ClassScopeSpecialization@@QAEXXZ"
// X64: call {{.*}} @"\01??$Foo@$0A@@Type@ClassScopeSpecialization@@QEAAXXZ"
    T.Foo<0>();
  }
}