URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [decltype30.C] - Rev 715
Go to most recent revision | Compare with Previous | Blame | View Log
// PR c++/49369
// { dg-options -std=c++0x }
template <class,class> struct assert_same;
template <class T> struct assert_same<T,T> {};
struct B {
int member;
};
struct C: B {
void method() const;
};
void C::method() const {
assert_same<decltype((B::member)), const int&> a;
}
Go to most recent revision | Compare with Previous | Blame | View Log