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