mirror of
https://github.com/autc04/Retro68.git
synced 2024-06-28 11:30:19 +00:00
13 lines
340 B
C
13 lines
340 B
C
// 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__));
|
|
};
|