Commit 98ef99ab by Martin Sebor Committed by Martin Sebor

c++/61941 - Mis-parsing of warn_unused_result function with ref-qualifiers

gcc/testsuite/ChangeLog:
	* g++.dg/pr61941.C: New test.

From-SVN: r264324
parent 1b1dfddf
2018-09-14 Martin Sebor <msebor@redhat.com>
c++/61941
* g++.dg/pr61941.C: New test.
2018-09-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com> 2018-09-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
* gcc.target/aarch64/combine_bfi_1.c: Scan for bfi instruction * gcc.target/aarch64/combine_bfi_1.c: Scan for bfi instruction
......
// PR c++/61941 - Misparsing of warn_unused_result function with ref-qualifiers
// { dg-do compile { target c++11 } }
// { dg-options "-Wall" }
class S
{
public:
S x() const __attribute__ ((__warn_unused_result__));
S y() const & __attribute__ ((__warn_unused_result__));
S y() && __attribute__ ((__warn_unused_result__));
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment