Debian Codegraph @

gcc/testsuite/g++.dg/rtti/typeid5.C

raw
1 // PR c++/29928
2 // { dg-do compile }
3
4 #include <typeinfo>
5
6 struct S;
7
8 void f()
9 {
10 const std::type_info& info1 = typeid(int []);
11 const std::type_info& info2 = typeid(S [3]);
12 const std::type_info& info3 = typeid(S []);
13 }