summaryrefslogtreecommitdiffstats
path: root/test/OpenMP/distribute_simd_aligned_messages.cpp
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2017-06-12 21:59:18 +0000
committerNick Lewycky <nicholas@mxc.ca>2017-06-12 21:59:18 +0000
commitc700ae6c9ead18995ccb60bc38879cebaabbe4a6 (patch)
tree80afb142df20a0d6ef91ca552af40264638d6a8b /test/OpenMP/distribute_simd_aligned_messages.cpp
parent7b936e342f4c8f5a44588fb5c1ef94d02b4db52c (diff)
Revert r301742 which made ExprConstant checking apply to all full-exprs.
This patch also exposed pre-existing bugs in clang, see PR32864 and PR33140#c3 . git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@305239 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/OpenMP/distribute_simd_aligned_messages.cpp')
-rw-r--r--test/OpenMP/distribute_simd_aligned_messages.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/OpenMP/distribute_simd_aligned_messages.cpp b/test/OpenMP/distribute_simd_aligned_messages.cpp
index 21b1bc9da1..10beb7198a 100644
--- a/test/OpenMP/distribute_simd_aligned_messages.cpp
+++ b/test/OpenMP/distribute_simd_aligned_messages.cpp
@@ -134,8 +134,9 @@ S3 h; // expected-note 2 {{'h' defined here}}
template<class I, class C> int foomain(I argc, C **argv) {
I e(argc);
I g(argc);
- int i; // expected-note {{'i' defined here}}
- // expected-note@+1 {{declared here}}
+ int i; // expected-note {{declared here}} expected-note {{'i' defined here}}
+ // expected-note@+2 {{declared here}}
+ // expected-note@+1 {{reference to 'i' is not a constant expression}}
int &j = i;
#pragma omp target