summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/other/array1.C
blob: aff960e5742a6c1776620e475d458b924abe1cb3 (plain)
1
2
3
4
5
6
7
8
9
10
// Test typeid of multidimensional array with no bounds.
// { dg-do compile }

#include <typeinfo>

int main()
{
	const char *s = typeid(double[][]).name(); // { dg-error "bounds|confused" }
	return 0;
}