summaryrefslogtreecommitdiffstats
path: root/clang/test/OpenMP/threadprivate_messages.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2014-05-28 07:40:25 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2014-05-28 07:40:25 +0000
commit18b92eeacb23d8845b0d0934de71ce4986d0c7f7 (patch)
tree8fead6e73b226b1a68f767461b86952e765f1b90 /clang/test/OpenMP/threadprivate_messages.cpp
parent7c747fc7c62606f1736aa114328eaeec7981052b (diff)
downloadbcm5719-llvm-18b92eeacb23d8845b0d0934de71ce4986d0c7f7.tar.gz
bcm5719-llvm-18b92eeacb23d8845b0d0934de71ce4986d0c7f7.zip
[OPENMP] Additional checking for local vars in initial values for threadprivate vars
llvm-svn: 209716
Diffstat (limited to 'clang/test/OpenMP/threadprivate_messages.cpp')
-rw-r--r--clang/test/OpenMP/threadprivate_messages.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/test/OpenMP/threadprivate_messages.cpp b/clang/test/OpenMP/threadprivate_messages.cpp
index 4b4f9e01463..c922f190ad0 100644
--- a/clang/test/OpenMP/threadprivate_messages.cpp
+++ b/clang/test/OpenMP/threadprivate_messages.cpp
@@ -108,10 +108,12 @@ int o; // expected-note {{candidate found by name lookup is '(anonymous namespac
int main(int argc, char **argv) { // expected-note {{'argc' defined here}}
- int x, y = argc; // expected-note {{'y' defined here}}
+ int x, y = argc; // expected-note 2 {{'y' defined here}}
static double d1;
static double d2;
static double d3; // expected-note {{'d3' defined here}}
+ static Class LocalClass(y); // expected-error {{variable with local storage in initial value of threadprivate variable}}
+#pragma omp threadprivate(LocalClass)
d.a = a;
d2++;
OpenPOWER on IntegriCloud