Update tests to reflect clang r189769 which changes the printing of
'auto const' to 'const auto'. llvm-svn: 189770
This commit is contained in:
parent
b4a4326824
commit
9051d41a74
|
@ -143,14 +143,14 @@ void different_type() {
|
|||
for (S::const_iterator it = s.begin(), e = s.end(); it != e; ++it) {
|
||||
printf("s has value %d\n", (*it).x);
|
||||
}
|
||||
// CHECK: for (auto const & elem : s)
|
||||
// CHECK: for (const auto & elem : s)
|
||||
// CHECK-NEXT: printf("s has value %d\n", (elem).x);
|
||||
|
||||
S *ps;
|
||||
for (S::const_iterator it = ps->begin(), e = ps->end(); it != e; ++it) {
|
||||
printf("s has value %d\n", (*it).x);
|
||||
}
|
||||
// CHECK: for (auto const & p : *ps)
|
||||
// CHECK: for (const auto & p : *ps)
|
||||
// CHECK-NEXT: printf("s has value %d\n", (p).x);
|
||||
|
||||
// v.begin() returns a user-defined type 'iterator' which, since it's
|
||||
|
|
|
@ -44,7 +44,7 @@ void macroConflict() {
|
|||
printf("s has value %d\n", (*it).x);
|
||||
printf("Max of 3 and 5: %d\n", MAX(3,5));
|
||||
}
|
||||
// CHECK: for (auto const & MAXs_it : MAXs)
|
||||
// CHECK: for (const auto & MAXs_it : MAXs)
|
||||
// CHECK-NEXT: printf("s has value %d\n", (MAXs_it).x);
|
||||
// CHECK-NEXT: printf("Max of 3 and 5: %d\n", MAX(3,5));
|
||||
|
||||
|
|
|
@ -63,7 +63,7 @@ void f() {
|
|||
}
|
||||
// The inner loop is also convertible, but doesn't need to be converted
|
||||
// immediately. Update this test when that changes!
|
||||
// CHECK: for (auto const & elem : NestS) {
|
||||
// CHECK: for (const auto & elem : NestS) {
|
||||
// CHECK-NEXT: for (S::const_iterator SI = (elem).begin(), SE = (elem).end(); SI != SE; ++SI) {
|
||||
// CHECK-NEXT: printf("%d", *SI);
|
||||
}
|
||||
|
|
|
@ -124,14 +124,14 @@ void different_type() {
|
|||
for (S::const_iterator it = s.begin(); it != s.end(); ++it) {
|
||||
printf("s has value %d\n", (*it).x);
|
||||
}
|
||||
// CHECK: for (auto const & elem : s)
|
||||
// CHECK: for (const auto & elem : s)
|
||||
// CHECK-NEXT: printf("s has value %d\n", (elem).x);
|
||||
|
||||
S *ps;
|
||||
for (S::const_iterator it = ps->begin(); it != ps->end(); ++it) {
|
||||
printf("s has value %d\n", (*it).x);
|
||||
}
|
||||
// CHECK: for (auto const & p : *ps)
|
||||
// CHECK: for (const auto & p : *ps)
|
||||
// CHECK-NEXT: printf("s has value %d\n", (p).x);
|
||||
|
||||
// v.begin() returns a user-defined type 'iterator' which, since it's
|
||||
|
|
Loading…
Reference in New Issue