Debian Codegraph @

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

raw
1 // { dg-do run }
2
3 #include <typeinfo>
4 #include <string.h>
5
6 struct S {};
7
8 typedef S volatile T[4];
9
10 T t[3];
11
12 const std::type_info& ti = typeid (t);
13
14 int main () {
15 if (strcmp (ti.name (), "A3_A4_1S") != 0)
16 return 1;
17 }