summaryrefslogtreecommitdiffstats
path: root/clang/test/OpenMP/parallel_private_messages.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2014-06-19 09:13:45 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2014-06-19 09:13:45 +0000
commit7ff5524f7effdb722041581938a3ac665a4b3a43 (patch)
treea0112abee1da1f882d15925a29a14c5cf77d100f /clang/test/OpenMP/parallel_private_messages.cpp
parentb62e52e1b52f2cb064a3ad75d266748c8dc6b619 (diff)
downloadbcm5719-llvm-7ff5524f7effdb722041581938a3ac665a4b3a43.tar.gz
bcm5719-llvm-7ff5524f7effdb722041581938a3ac665a4b3a43.zip
[OPENMP] Improved diagnostic messages for vars with the predetermined data sharing attributes and reformatting
llvm-svn: 211262
Diffstat (limited to 'clang/test/OpenMP/parallel_private_messages.cpp')
-rw-r--r--clang/test/OpenMP/parallel_private_messages.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/clang/test/OpenMP/parallel_private_messages.cpp b/clang/test/OpenMP/parallel_private_messages.cpp
index 6dc55e55747..1cd86d2b5fb 100644
--- a/clang/test/OpenMP/parallel_private_messages.cpp
+++ b/clang/test/OpenMP/parallel_private_messages.cpp
@@ -13,7 +13,7 @@ class S2 {
mutable int a;
public:
S2():a(0) { }
- static float S2s; // expected-note {{predetermined as shared}}
+ static float S2s; // expected-note {{static data member is predetermined as shared}}
};
const S2 b;
const S2 ba[5];
@@ -22,9 +22,9 @@ class S3 {
public:
S3():a(0) { }
};
-const S3 c; // expected-note {{predetermined as shared}}
-const S3 ca[5]; // expected-note {{predetermined as shared}}
-extern const int f; // expected-note {{predetermined as shared}}
+const S3 c; // expected-note {{global variable is predetermined as shared}}
+const S3 ca[5]; // expected-note {{global variable is predetermined as shared}}
+extern const int f; // expected-note {{global variable is predetermined as shared}}
class S4 { // expected-note {{'S4' declared here}}
int a;
S4();
@@ -42,8 +42,8 @@ int threadvar;
#pragma omp threadprivate(threadvar) // expected-note {{defined as threadprivate or thread local}}
int main(int argc, char **argv) {
- const int d = 5; // expected-note {{predetermined as shared}}
- const int da[5] = { 0 }; // expected-note {{predetermined as shared}}
+ const int d = 5; // expected-note {{constant variable is predetermined as shared}}
+ const int da[5] = { 0 }; // expected-note {{constant variable is predetermined as shared}}
S4 e(4); // expected-note {{'e' defined here}}
S5 g(5); // expected-note {{'g' defined here}}
int i;
OpenPOWER on IntegriCloud