2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / pr61941.C
blob5485b982cc7bc08fd26caabd3f4d484664ec68b9
1 // PR c++/61941 - Misparsing of warn_unused_result function with ref-qualifiers
2 // { dg-do compile { target c++11 } }
3 // { dg-options "-Wall" }
5 class S
7 public:
8     S x() const __attribute__ ((__warn_unused_result__));
10     S y() const & __attribute__ ((__warn_unused_result__));
11     S y() && __attribute__ ((__warn_unused_result__));