Skip to content

Commit aaecad0

Browse files
committed
[FOLD] update tests
1 parent fb4067a commit aaecad0

File tree

3 files changed

+21
-21
lines changed

3 files changed

+21
-21
lines changed

clang/test/CXX/drs/dr2xx.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -556,9 +556,9 @@ namespace dr244 { // dr244: 11
556556
B_ptr->B_alias::~B();
557557
B_ptr->B_alias::~B_alias();
558558
B_ptr->dr244::~B();
559-
// expected-error@-1 {{qualified member access refers to a member in namespace 'dr244'}}
559+
// expected-error@-1 {{no member named '~B' in namespace 'dr244'}}
560560
B_ptr->dr244::~B_alias();
561-
// expected-error@-1 {{qualified member access refers to a member in namespace 'dr244'}}
561+
// expected-error@-1 {{no member named '~B' in namespace 'dr244'}}
562562
}
563563

564564
template<typename T, typename U>
@@ -724,7 +724,7 @@ namespace dr252 { // dr252: 3.1
724724
struct E {
725725
void operator delete(void*, int);
726726
void operator delete(void*) = delete; // #dr252-E
727-
// cxx98-error@-1 {{deleted function definitions are a C++11 extension}}
727+
// cxx98-error@-1 {{deleted function definitions are a C++11 extension}}
728728
virtual ~E();
729729
};
730730
E::~E() {}
@@ -831,7 +831,7 @@ namespace dr258 { // dr258: 2.8
831831

832832
namespace dr259 { // dr259: 4
833833
template<typename T> struct A {};
834-
template struct A<int>; // #dr259-A-int
834+
template struct A<int>; // #dr259-A-int
835835
template struct A<int>;
836836
// expected-error@-1 {{duplicate explicit instantiation of 'A<int>'}}
837837
// expected-note@#dr259-A-int {{previous explicit instantiation is here}}
@@ -992,7 +992,7 @@ namespace dr275 { // dr275: no
992992
// expected-error@-1 {{no function template matches function template specialization 'f'}}
993993
}
994994

995-
template <class T> void g(T) {} // #dr275-g
995+
template <class T> void g(T) {} // #dr275-g
996996

997997
template <> void N::f(char) {}
998998
template <> void f(int) {}
@@ -1159,7 +1159,7 @@ namespace dr285 { // dr285: yes
11591159
namespace dr286 { // dr286: 2.8
11601160
template<class T> struct A {
11611161
class C {
1162-
template<class T2> struct B {}; // #dr286-B
1162+
template<class T2> struct B {}; // #dr286-B
11631163
};
11641164
};
11651165

clang/test/CXX/drs/dr3xx.cpp

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ namespace dr301 { // dr301: 3.5
2323
bool b = (void(*)(S, S))operator- < (void(*)(S, S))operator-;
2424
// cxx98-17-warning@-1 {{ordered comparison of function pointers ('void (*)(S, S)' and 'void (*)(S, S)')}}
2525
// cxx20-23-error@-2 {{expected '>'}}
26-
// cxx20-23-note@-3 {{to match this '<'}}
26+
// cxx20-23-note@-3 {{to match this '<'}}
2727
bool c = (void(*)(S, S))operator+ < (void(*)(S, S))operator-;
2828
// expected-error@-1 {{expected '>'}}
2929
// expected-note@-2 {{to match this '<'}}
@@ -432,7 +432,7 @@ namespace dr329 { // dr329: 3.5
432432
// expected-note@#dr329-b {{in instantiation of template class 'dr329::A<char>' requested here}}
433433
// expected-note@#dr329-i {{previous definition is here}}
434434
};
435-
A<int> a;
435+
A<int> a;
436436
A<char> b; // #dr329-b
437437

438438
void test() {
@@ -631,7 +631,7 @@ namespace dr339 { // dr339: 2.8
631631
char xxx(int);
632632
char (&xxx(float))[2];
633633

634-
template<class T> A<sizeof(xxx((T)0))> f(T) {} // #dr339-f
634+
template<class T> A<sizeof(xxx((T)0))> f(T) {} // #dr339-f
635635

636636
void test() {
637637
A<1> a = f(0);
@@ -673,9 +673,9 @@ namespace dr341 { // dr341: sup 1708
673673
namespace B {
674674
extern "C" int &dr341_a = dr341_a;
675675
// expected-error@-1 {{redefinition of 'dr341_a'}}
676-
// expected-note@#dr341_a {{previous definition is here}}
676+
// expected-note@#dr341_a {{previous definition is here}}
677677
}
678-
extern "C" void dr341_b(); // #dr341_b
678+
extern "C" void dr341_b(); // #dr341_b
679679
}
680680
int dr341_a;
681681
// expected-error@-1 {{declaration of 'dr341_a' in global scope conflicts with declaration with C language linkage}}
@@ -693,7 +693,7 @@ namespace dr341 {
693693
// expected-error@-1 {{declaration of 'dr341_d' with C language linkage conflicts with declaration in global scope}}
694694
// expected-note@#dr341_d {{declared in global scope here}}
695695

696-
namespace A { extern "C" int dr341_e; } // #dr341_e
696+
namespace A { extern "C" int dr341_e; } // #dr341_e
697697
namespace B { extern "C" void dr341_e(); }
698698
// expected-error@-1 {{redefinition of 'dr341_e' as different kind of symbol}}
699699
// expected-note@#dr341_e {{previous definition is here}}
@@ -817,7 +817,7 @@ namespace dr352 { // dr352: 2.8
817817
void g(A::E e) {
818818
foo(e, &arg);
819819
// expected-error@-1 {{no matching function for call to 'foo'}}
820-
// expected-note@#dr352-foo {{candidate template ignored: couldn't infer template argument 'R'}}
820+
// expected-note@#dr352-foo {{candidate template ignored: couldn't infer template argument 'R'}}
821821

822822
using A::foo;
823823
foo<int, int>(e, &arg); // ok, uses non-template
@@ -918,7 +918,7 @@ namespace dr352 { // dr352: 2.8
918918

919919
namespace example5 {
920920
template<int I> class A {};
921-
template<int I> void g(A<I+1>); // #dr352-g
921+
template<int I> void g(A<I+1>); // #dr352-g
922922
template<int I> void f(A<I>, A<I+1>);
923923
void h(A<1> a1, A<2> a2) {
924924
g(a1);
@@ -1095,7 +1095,7 @@ namespace dr364 { // dr364: yes
10951095
}
10961096

10971097
// dr366: yes
1098-
#if "foo" // expected-error {{invalid token at start of a preprocessor expression}}
1098+
#if "foo" // expected-error {{invalid token at start of a preprocessor expression}}
10991099
#endif
11001100

11011101
namespace dr367 { // dr367: yes
@@ -1252,7 +1252,7 @@ namespace dr373 { // dr373: 5
12521252
}
12531253
};
12541254

1255-
struct A { struct B {}; }; // #dr373-A
1255+
struct A { struct B {}; }; // #dr373-A
12561256
namespace X = A::B;
12571257
// expected-error@-1 {{expected namespace name}}
12581258
// expected-note@#dr373-A {{'A' declared here}}
@@ -1585,7 +1585,7 @@ namespace dr395 { // dr395: 3.0
15851585
// expected-error@-2 {{conversion function cannot have any parameters}}
15861586
// expected-error@-3 {{cannot specify any part of a return type in the declaration of a conversion function}}
15871587
// expected-error@-4 {{conversion function cannot convert to a function type}}
1588-
1588+
15891589
};
15901590

15911591
struct null1_t {
@@ -1698,9 +1698,9 @@ namespace dr399 { // dr399: 11
16981698
B_ptr->B_alias::~B();
16991699
B_ptr->B_alias::~B_alias();
17001700
B_ptr->dr399::~B();
1701-
// expected-error@-1 {{qualified member access refers to a member in namespace 'dr399'}}
1701+
// expected-error@-1 {{no member named '~B' in namespace 'dr399'}}
17021702
B_ptr->dr399::~B_alias();
1703-
// expected-error@-1 {{qualified member access refers to a member in namespace 'dr399'}}
1703+
// expected-error@-1 {{no member named '~B' in namespace 'dr399'}}
17041704
}
17051705

17061706
template<typename T, typename U>

clang/test/SemaCXX/member-expr.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ namespace C {
4040
}
4141

4242
void test2(X *xp) {
43-
xp->::i = 7; // expected-error{{qualified member access refers to a member in the global namespace}}
44-
xp->C::i = 7; // expected-error{{qualified member access refers to a member in namespace 'C'}}
43+
xp->::i = 7; // expected-error{{'i' is not a member of class 'X'}}
44+
xp->C::i = 7; // expected-error{{'C::i' is not a member of class 'X'}}
4545
}
4646

4747

0 commit comments

Comments
 (0)