projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f52ab8d
)
Add a test for r174980, that we used to accept
author
Dmitri Gribenko
<gribozavr@gmail.com>
Tue, 12 Feb 2013 20:43:41 +0000
(20:43 +0000)
committer
Dmitri Gribenko
<gribozavr@gmail.com>
Tue, 12 Feb 2013 20:43:41 +0000
(20:43 +0000)
llvm-svn: 175005
clang/test/CXX/special/class.ctor/p1.cpp
patch
|
blob
|
history
diff --git
a/clang/test/CXX/special/class.ctor/p1.cpp
b/clang/test/CXX/special/class.ctor/p1.cpp
index
23ceeba
..
e19dc86
100644
(file)
--- a/
clang/test/CXX/special/class.ctor/p1.cpp
+++ b/
clang/test/CXX/special/class.ctor/p1.cpp
@@
-42,6
+42,14
@@
template<typename T> (X1<T>::X1)(double) { }
template<typename T> X1<T> X1<T>::f1(int) { return 0; }
template<typename T> X1<T> (X1<T>::f1)(type) { return 0; }
-class
A
{
-
A::A(); // expected-error{{extra qualification on member 'A
'}}
+class
X2
{
+
X2::X2(); // expected-error {{extra qualification on member 'X2
'}}
};
+
+// We used to parse 'X3::X3' as a member function declaration.
+// DR 1435 and DR 1310 made this invalid.
+typedef int T1;
+struct X3 {
+ X3::X3(T1()); // expected-error {{extra qualification on member 'X3'}}
+};
+