summaryrefslogtreecommitdiffstats
path: root/clang/test/OpenMP/for_linear_codegen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/OpenMP/for_linear_codegen.cpp')
-rw-r--r--clang/test/OpenMP/for_linear_codegen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/OpenMP/for_linear_codegen.cpp b/clang/test/OpenMP/for_linear_codegen.cpp
index 0bd573d5dc1..8073273feee 100644
--- a/clang/test/OpenMP/for_linear_codegen.cpp
+++ b/clang/test/OpenMP/for_linear_codegen.cpp
@@ -33,7 +33,7 @@ template <typename T>
T tmain() {
S<T> test;
T *pvar = &test.f;
- T lvar = T();
+ T &lvar = test.f;
#pragma omp parallel
#pragma omp for linear(pvar, lvar)
for (int i = 0; i < 2; ++i) {
OpenPOWER on IntegriCloud