diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2013-09-26 03:24:06 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2013-09-26 03:24:06 +0000 |
commit | d0dbb7e6d4f05f5d0a5978822476897fe3427787 (patch) | |
tree | c57328ce9aa0dcbfd3d80eeec11418bcba8ab625 /test/OpenMP/threadprivate_messages.cpp | |
parent | e7346c15021adbc9bc9b45fd28b7e56ebe88f49f (diff) |
[OPENMP] Improved variable lookup procedure for threadprivate variables.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191416 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/OpenMP/threadprivate_messages.cpp')
-rw-r--r-- | test/OpenMP/threadprivate_messages.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/OpenMP/threadprivate_messages.cpp b/test/OpenMP/threadprivate_messages.cpp index a188a0b05d..4858549a70 100644 --- a/test/OpenMP/threadprivate_messages.cpp +++ b/test/OpenMP/threadprivate_messages.cpp @@ -60,12 +60,12 @@ class Class { #pragma omp threadprivate (g) namespace ns { - int m; // expected-note 2 {{'m' defined here}} + int m; #pragma omp threadprivate (m) } #pragma omp threadprivate (m) // expected-error {{use of undeclared identifier 'm'}} -#pragma omp threadprivate (ns::m) // expected-error {{'#pragma omp threadprivate' must appear in the scope of the 'ns::m' variable declaration}} -#pragma omp threadprivate (ns:m) // expected-error {{unexpected ':' in nested name specifier; did you mean '::'?}} expected-error {{'#pragma omp threadprivate' must appear in the scope of the 'ns::m' variable declaration}} +#pragma omp threadprivate (ns::m) // expected-error {{'#pragma omp threadprivate' must precede all references to variable 'ns::m'}} +#pragma omp threadprivate (ns:m) // expected-error {{unexpected ':' in nested name specifier; did you mean '::'?}} expected-error {{'#pragma omp threadprivate' must precede all references to variable 'ns::m'}} const int h = 12; const volatile int i = 10; |