OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
PR c++/51107
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
decltype30.C
1
// PR c++/49369
2
// { dg-options -std=c++0x }
3
4
template <class,class> struct assert_same;
5
template <class T> struct assert_same<T,T> {};
6
7
struct B {
8
int member;
9
};
10
11
struct C: B {
12
void method() const;
13
};
14
15
void C::method() const {
16
assert_same<decltype((B::member)), const int&> a;
17
}