summaryrefslogtreecommitdiffstats
path: root/test/SemaCXX/trailing-return-0x.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaCXX/trailing-return-0x.cpp')
-rw-r--r--test/SemaCXX/trailing-return-0x.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/SemaCXX/trailing-return-0x.cpp b/test/SemaCXX/trailing-return-0x.cpp
index bd601db..f7e3433 100644
--- a/test/SemaCXX/trailing-return-0x.cpp
+++ b/test/SemaCXX/trailing-return-0x.cpp
@@ -94,3 +94,11 @@ namespace DR1608 {
auto f() -> decltype((*this)[0]); // expected-error {{cannot be overloaded}}
};
}
+
+namespace PR16273 {
+ struct A {
+ template <int N> void f();
+ auto g()->decltype(this->f<0>());
+ };
+}
+
OpenPOWER on IntegriCloud