URL
                    https://opencores.org/ocsvn/openrisc/openrisc/trunk
                
            Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [initlist22.C] - Rev 749
Go to most recent revision | Compare with Previous | Blame | View Log
// Core issue 934// { dg-options "-std=c++0x" }int i;int& r1{ i }; // OK, direct bindingint&& r2{ i }; // { dg-error "" } binding && to lvalueint& r3{ }; // { dg-error "" } reference to temporaryint&& r4{ }; // OK, reference to temporarystruct A { int i; } a;A& r5 { i }; // { dg-error "" } reference to temporaryA&& r6 { i }; // OK, aggregate initialization of temporaryA& r7 { a }; // { dg-error "" } invalid aggregate initializer for AA&& r8 { a }; // { dg-error "" } invalid aggregate initializer for Astruct B { B(int); int i; } b(0);B& r9 { i }; // { dg-error "" } reference to temporaryB&& r10 { i }; // OK, make temporary with B(int) constructorB& r11 { b }; // { dg-error "" } reference to temporaryB&& r12 { b }; // OK, make temporary with copy constructor
Go to most recent revision | Compare with Previous | Blame | View Log
