blob: 11f6308eb56441ccce75fa67555516d0b385afcc [file] [log] [blame]
// Test the fix for a bug introduced by the support of pass-by-reference
// paramters.
// { dg-do compile }
// { dg-options "-Wthread-safety -O" }
#include "thread_annot_common.h"
struct Foo { Foo & operator<< (bool) {} };
struct Bar { Foo & func () {} };
struct Bas { void operator& (Foo &) {} };
void mumble()
{
Bas() & Bar().func() << "" << "";
Bas() & Bar().func() << "";
}