diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/cpp0x/decltype51.C')
-rw-r--r-- | gcc/testsuite/g++.dg/cpp0x/decltype51.C | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/cpp0x/decltype51.C b/gcc/testsuite/g++.dg/cpp0x/decltype51.C new file mode 100644 index 0000000..9ab41467 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/decltype51.C @@ -0,0 +1,10 @@ +// PR c++/53721 +// { dg-require-effective-target c++11 } + +struct A +{ + void f() {}; + auto g() -> decltype(this->f()) + { + } +}; |