Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/trailing15.C

raw
1 // PR c++/101051
2 // { dg-do compile { target c++11 } }
3
4 template <class T>
5 class Foo
6 {
7 constexpr operator T() -> T {} // { dg-error "trailing return" }
8 };
9
10 struct S {
11 operator int() const -> double; // { dg-error "trailing return" }
12 };
13
14 class A { operator auto*() -> int; }; // { dg-error "auto|trailing return" }