summaryrefslogtreecommitdiffstats
path: root/clang/test/CXX/except/except.spec/p5-pointers.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2012-05-16 23:40:17 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2012-05-16 23:40:17 +0000
commit109d5ed96d985c0a65ca8dae851c48fc0abeb6d2 (patch)
tree028fceabc28de2554a38329cc05e0165c49a4ff9 /clang/test/CXX/except/except.spec/p5-pointers.cpp
parentaf1537f57c3b3ff1e267b20bbcae909e12f5d64b (diff)
downloadbcm5719-llvm-109d5ed96d985c0a65ca8dae851c48fc0abeb6d2.tar.gz
bcm5719-llvm-109d5ed96d985c0a65ca8dae851c48fc0abeb6d2.zip
Recover better from a missing 'typename' in a function template definition.
Disambiguate past such a potential problem, and use the absence of 'typename' to break ties in favor of a parenthesized thingy being an initializer, if nothing else in the declaration disambiguates it as declaring a function. llvm-svn: 156963
Diffstat (limited to 'clang/test/CXX/except/except.spec/p5-pointers.cpp')
-rw-r--r--clang/test/CXX/except/except.spec/p5-pointers.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/CXX/except/except.spec/p5-pointers.cpp b/clang/test/CXX/except/except.spec/p5-pointers.cpp
index dd3c0600ce9..f855520aa24 100644
--- a/clang/test/CXX/except/except.spec/p5-pointers.cpp
+++ b/clang/test/CXX/except/except.spec/p5-pointers.cpp
@@ -65,9 +65,9 @@ void fnptrs()
void (*(*t7)())() throw(B1) = &s8; // valid
void (*(*t8)())() throw(A) = &s8; // expected-error {{return types differ}}
void (*(*t9)())() throw(D) = &s8; // expected-error {{return types differ}}
- void (*t10)(void (*)() throw(B1)) = &s9; // valid expected-warning{{disambiguated}}
- void (*t11)(void (*)() throw(A)) = &s9; // expected-error {{argument types differ}} expected-warning{{disambiguated}}
- void (*t12)(void (*)() throw(D)) = &s9; // expected-error {{argument types differ}} expected-warning{{disambiguated}}
+ void (*t10)(void (*)() throw(B1)) = &s9; // valid
+ void (*t11)(void (*)() throw(A)) = &s9; // expected-error {{argument types differ}}
+ void (*t12)(void (*)() throw(D)) = &s9; // expected-error {{argument types differ}}
}
// Member function stuff
OpenPOWER on IntegriCloud