summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/for-range-examples.cpp
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2015-02-16 23:12:37 +0000
committerAaron Ballman <aaron@aaronballman.com>2015-02-16 23:12:37 +0000
commitf25731a4b45bf9813afc7fd65cf2b220cc2a7227 (patch)
tree0d6fa3b116ca4e8661d145e93edc1dd360e7f714 /clang/test/SemaCXX/for-range-examples.cpp
parentf83bd0341d92c54a85a3e150ee067ef7c7be937a (diff)
downloadbcm5719-llvm-f25731a4b45bf9813afc7fd65cf2b220cc2a7227.tar.gz
bcm5719-llvm-f25731a4b45bf9813afc7fd65cf2b220cc2a7227.zip
Minor tweaks to r229447 to ensure the attribute is properly quoted when diagnosed.
llvm-svn: 229454
Diffstat (limited to 'clang/test/SemaCXX/for-range-examples.cpp')
-rw-r--r--clang/test/SemaCXX/for-range-examples.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/SemaCXX/for-range-examples.cpp b/clang/test/SemaCXX/for-range-examples.cpp
index f2b155ad7e5..9359ae63a60 100644
--- a/clang/test/SemaCXX/for-range-examples.cpp
+++ b/clang/test/SemaCXX/for-range-examples.cpp
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++11
+// RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++11
namespace value_range_detail {
template<typename T>
@@ -226,7 +226,7 @@ namespace test7 {
// we check the alignment attribute before we perform the auto
// deduction.
for (d alignas(1) : arr) {} // expected-error {{requires type for loop variable}}
- for (e [[deprecated]] : arr) { e = 0; } // expected-warning{{use of the deprecated attribute is a C++14 extension}} expected-warning {{deprecated}} expected-note {{here}} expected-error {{requires type for loop variable}}
+ for (e [[deprecated]] : arr) { e = 0; } // expected-warning{{use of the 'deprecated' attribute is a C++14 extension}} expected-warning {{deprecated}} expected-note {{here}} expected-error {{requires type for loop variable}}
}
}
OpenPOWER on IntegriCloud