blob: d126108073f39d3ad9c47d0bff0c754c6ef8b285 [file] [log] [blame]
Rafael Espindola234fe652012-03-05 10:54:55 +00001// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
2
3template <int dimm> struct Patch {
4 static const unsigned int no_neighbor = 1;
5};
6template <int dim>
7const unsigned int Patch<dim>::no_neighbor;
8void f(const unsigned int);
9void g() {
10 f(Patch<1>::no_neighbor);
11}
12template struct Patch<1>;
13
14// CHECK: _ZN5PatchILi1EE11no_neighborE