diff options
Diffstat (limited to 'clang/test/CodeGenCXX/pr12104.h')
-rw-r--r-- | clang/test/CodeGenCXX/pr12104.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/pr12104.h b/clang/test/CodeGenCXX/pr12104.h new file mode 100644 index 0000000..f3e9363 --- /dev/null +++ b/clang/test/CodeGenCXX/pr12104.h @@ -0,0 +1,9 @@ +template <int dimm> struct Patch { + static const unsigned int no_neighbor = 1; +}; +template <int dim> +const unsigned int Patch<dim>::no_neighbor; +void f(const unsigned int); +void g() { + f(Patch<1>::no_neighbor); +} |