Debian Codegraph @

gcc/testsuite/g++.dg/ext/typeof11.C

raw
1 // PR c++/37920
2
3 template<typename T> T& ensure_obj(const T&);
4 template <typename T>
5 void func2(T& t)
6 {
7 typedef __typeof__(ensure_obj(t)) ttt;
8 struct ttt1
9 {
10 ttt1( ttt arg0 ){}
11 } tttt ( t );
12 }
13 int main()
14 {
15 double d = 5;
16 func2(d);
17 }
18