summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/rtti/cv1.C
blob: 59dd6592c9da7932e0ea0d7697f7bdff48195e62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// { dg-do run }

#include <typeinfo>
#include <string.h>

struct S {};

typedef S volatile T[4];

T t[3];

const std::type_info& ti = typeid (t);

int main () {
  if (strcmp (ti.name (), "A3_A4_1S") != 0)
    return 1;
}