From d178ad4943926f45a95d320c90f89f55b00ec68e Mon Sep 17 00:00:00 2001 From: Alexey Bataev Date: Fri, 7 Mar 2014 08:03:37 +0000 Subject: [OPENMP] Small update in threadprivate variables processing to fix template instantiation. llvm-svn: 203214 --- clang/test/OpenMP/threadprivate_ast_print.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'clang/test') diff --git a/clang/test/OpenMP/threadprivate_ast_print.cpp b/clang/test/OpenMP/threadprivate_ast_print.cpp index bf3b30550ad..4d0d40e213f 100644 --- a/clang/test/OpenMP/threadprivate_ast_print.cpp +++ b/clang/test/OpenMP/threadprivate_ast_print.cpp @@ -26,9 +26,16 @@ int a, b; #pragma omp threadprivate(d, b) // CHECK-NEXT: #pragma omp threadprivate(d,b) +template +struct ST { + static T m; + #pragma omp threadprivate(m) +}; + template T foo() { static T v; #pragma omp threadprivate(v) + v = ST::m; return v; } //CHECK: template int foo() { -- cgit v1.2.3